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}")
7
7
8
8
set (BTCPP_LIBRARY ${PROJECT_NAME} )
9
9
10
- #---- Enable C++17 ----
11
- set (CMAKE_CXX_STANDARD 17 )
12
- set (CMAKE_CXX_STANDARD_REQUIRED ON )
13
-
14
10
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
15
11
message (STATUS "Setting build type to 'Release' as none was specified." )
16
12
set (CMAKE_BUILD_TYPE "Release" CACHE
@@ -179,6 +175,8 @@ target_include_directories(${BTCPP_LIBRARY}
179
175
target_compile_definitions (${BTCPP_LIBRARY} PRIVATE $< $< CONFIG:Debug> :TINYXML2_DEBUG> )
180
176
target_compile_definitions (${BTCPP_LIBRARY} PUBLIC BTCPP_LIBRARY_VERSION= "${CMAKE_PROJECT_VERSION} " )
181
177
178
+ target_compile_features (${BTCPP_LIBRARY} PUBLIC cxx_std_17 )
179
+
182
180
if (MSVC )
183
181
else ()
184
182
target_compile_options (${BTCPP_LIBRARY} PRIVATE -Wall -Wextra )
You can’t perform that action at this time.
0 commit comments