mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-07-08 01:30:39 +08:00
Enable stdc++17 by default
This commit is contained in:
@@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.17)
|
||||
|
||||
option(ENABLE_ICONV "Use libiconv to convert encoding" ON)
|
||||
option(ENABLE_STANDALONE "Build utils standalone" OFF)
|
||||
option(ENABLE_CXX17 "Enable C++ 17" OFF)
|
||||
option(INSTALL_DEP_FILES "Install a file with dependences." OFF)
|
||||
option(ENABLE_SSL "Enable SSL" OFF)
|
||||
option(ENABLE_ZLIB "Use Zlib to uncompress http data." OFF)
|
||||
@@ -186,9 +185,7 @@ endif()
|
||||
if (ENABLE_ZLIB)
|
||||
target_link_libraries(utils ZLIB::ZLIB)
|
||||
endif()
|
||||
if (ENABLE_CXX17)
|
||||
target_compile_features(utils PRIVATE cxx_std_17)
|
||||
endif()
|
||||
target_compile_features(utils PRIVATE cxx_std_17)
|
||||
if (ENABLE_STANDALONE)
|
||||
install(TARGETS utils)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user