File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 13
13
option (
14
14
gtest_force_shared_crt
15
15
"Use shared (DLL) run-time lib even when Google Test is built as static lib."
16
- ON )
16
+ OFF )
17
17
18
18
option (gtest_build_tests "Build all of gtest's own tests." OFF )
19
19
@@ -59,6 +59,10 @@ if (POLICY CMP0063) # Visibility
59
59
cmake_policy (SET CMP0063 NEW )
60
60
endif (POLICY CMP0063 )
61
61
62
+ if (POLICY CMP0077 ) # Visibility
63
+ cmake_policy (SET CMP0077 NEW )
64
+ endif (POLICY CMP0077 )
65
+
62
66
if (COMMAND set_up_hermetic_build )
63
67
set_up_hermetic_build ()
64
68
endif ()
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ project(cpp-ipc)
4
4
option (LIBIPC_BUILD_TESTS "Build all of libipc's own tests." OFF )
5
5
option (LIBIPC_BUILD_DEMOS "Build all of libipc's own demos." OFF )
6
6
option (LIBIPC_BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF )
7
- option (LIBIPC_USE_STATIC_CRT "Set to ON to build with static CRT on Windows (/MT)." ON )
7
+ option (LIBIPC_USE_STATIC_CRT "Set to ON to build with static CRT on Windows (/MT)." OFF )
8
8
9
9
set (CMAKE_POSITION_INDEPENDENT_CODE ON )
10
10
set (CMAKE_CXX_STANDARD 17 )
@@ -38,7 +38,6 @@ add_subdirectory(src)
38
38
39
39
if (LIBIPC_BUILD_TESTS )
40
40
set (GOOGLETEST_VERSION 1.10.0 )
41
- set (CMAKE_POLICY_DEFAULT_CMP0077 NEW )
42
41
set (gtest_force_shared_crt $< NOT:$< BOOL:${LIBIPC_USE_STATIC_CRT} > > )
43
42
add_subdirectory (3rdparty/gtest )
44
43
add_subdirectory (test )
You can’t perform that action at this time.
0 commit comments