File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1010set (CMAKE_CXX_STANDARD 17)
1111set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG" )
1212if (NOT MSVC )
13- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2" )
13+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2" )
1414endif ()
1515
1616if (MSVC AND LIBIPC_USE_STATIC_CRT)
@@ -37,18 +37,19 @@ add_definitions(-DUNICODE -D_UNICODE)
3737add_subdirectory (src)
3838
3939if (LIBIPC_BUILD_TESTS)
40- set (GOOGLETEST_VERSION 1.10.0)
41- set (gtest_force_shared_crt $<NOT :$<BOOL :${LIBIPC_USE_STATIC_CRT} >>)
42- add_subdirectory (3rdparty/gtest)
43- add_subdirectory (test )
40+ set (GOOGLETEST_VERSION 1.10.0)
41+ set (CMAKE_POLICY_DEFAULT_CMP0077 NEW)
42+ set (gtest_force_shared_crt $<NOT :$<BOOL :${LIBIPC_USE_STATIC_CRT} >>)
43+ add_subdirectory (3rdparty/gtest)
44+ add_subdirectory (test )
4445endif ()
4546
4647if (LIBIPC_BUILD_DEMOS)
47- add_subdirectory (demo/chat)
48- add_subdirectory (demo/msg_que)
48+ add_subdirectory (demo/chat)
49+ add_subdirectory (demo/msg_que)
4950endif ()
5051
5152install (
52- DIRECTORY "include/"
53- DESTINATION "include"
53+ DIRECTORY "include/"
54+ DESTINATION "include"
5455)
You can’t perform that action at this time.
0 commit comments