File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CONFIG_PATH}")
77
88set (BTCPP_LIBRARY ${PROJECT_NAME} )
99
10- #---- Enable C++17 ----
11- set (CMAKE_CXX_STANDARD 17)
12- set (CMAKE_CXX_STANDARD_REQUIRED ON )
13-
1410if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
1511 message (STATUS "Setting build type to 'Release' as none was specified." )
1612 set (CMAKE_BUILD_TYPE "Release" CACHE
@@ -179,6 +175,8 @@ target_include_directories(${BTCPP_LIBRARY}
179175target_compile_definitions (${BTCPP_LIBRARY} PRIVATE $<$<CONFIG:Debug>:TINYXML2_DEBUG>)
180176target_compile_definitions (${BTCPP_LIBRARY} PUBLIC BTCPP_LIBRARY_VERSION="${CMAKE_PROJECT_VERSION} " )
181177
178+ target_compile_features (${BTCPP_LIBRARY} PUBLIC cxx_std_17)
179+
182180if (MSVC )
183181else ()
184182 target_compile_options (${BTCPP_LIBRARY} PRIVATE -Wall -Wextra)
You can’t perform that action at this time.
0 commit comments