Enable stdc++17 by default

This commit is contained in:
2025-05-15 17:16:59 +08:00
parent e444af237e
commit 2480b6ea8a
6 changed files with 37 additions and 5 deletions

View File

@@ -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()