modify CMakeLists.txt

This commit is contained in:
xukeawsl 2024-07-27 14:19:54 +08:00
parent 2ad116a9d3
commit 934ecfd4d9
1 changed files with 4 additions and 1 deletions

View File

@ -45,10 +45,13 @@ endif()
# Establish the project options # Establish the project options
option(CXXOPTS_BUILD_EXAMPLES "Set to ON to build examples" ${CXXOPTS_STANDALONE_PROJECT}) option(CXXOPTS_BUILD_EXAMPLES "Set to ON to build examples" ${CXXOPTS_STANDALONE_PROJECT})
option(CXXOPTS_BUILD_TESTS "Set to ON to build tests" ${CXXOPTS_STANDALONE_PROJECT}) option(CXXOPTS_BUILD_TESTS "Set to ON to build tests" ${CXXOPTS_STANDALONE_PROJECT})
option(CXXOPTS_ENABLE_INSTALL "Generate the install target" ${CXXOPTS_STANDALONE_PROJECT})
option(CXXOPTS_ENABLE_WARNINGS "Add warnings to CMAKE_CXX_FLAGS" ${CXXOPTS_STANDALONE_PROJECT}) option(CXXOPTS_ENABLE_WARNINGS "Add warnings to CMAKE_CXX_FLAGS" ${CXXOPTS_STANDALONE_PROJECT})
option(CXXOPTS_USE_UNICODE_HELP "Use ICU Unicode library" OFF) option(CXXOPTS_USE_UNICODE_HELP "Use ICU Unicode library" OFF)
if (NOT CXXOPTS_ENABLE_INSTALL)
option(CXXOPTS_ENABLE_INSTALL "Generate the install target" ${CXXOPTS_STANDALONE_PROJECT})
endif()
if (CXXOPTS_STANDALONE_PROJECT) if (CXXOPTS_STANDALONE_PROJECT)
cxxopts_set_cxx_standard() cxxopts_set_cxx_standard()
endif() endif()