mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-30 05:04:32 +00:00
make use of CONFIG and also put in TODO
This commit is contained in:
parent
622763209d
commit
fb28eea277
2 changed files with 2 additions and 1 deletions
|
|
@ -366,7 +366,7 @@ endif()
|
||||||
# CXXOPTS
|
# CXXOPTS
|
||||||
option(OPENMW_USE_SYSTEM_CXXOPTS "Use system provided cxxopts library" ON)
|
option(OPENMW_USE_SYSTEM_CXXOPTS "Use system provided cxxopts library" ON)
|
||||||
if(OPENMW_USE_SYSTEM_CXXOPTS)
|
if(OPENMW_USE_SYSTEM_CXXOPTS)
|
||||||
find_package(cxxopts REQUIRED)
|
find_package(cxxopts CONFIG REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Platform specific
|
# Platform specific
|
||||||
|
|
|
||||||
1
extern/CMakeLists.txt
vendored
1
extern/CMakeLists.txt
vendored
|
|
@ -202,6 +202,7 @@ if(NOT OPENMW_USE_SYSTEM_CXXOPTS)
|
||||||
### here is what makes all include directories -isystem
|
### here is what makes all include directories -isystem
|
||||||
get_target_property(CXXOPTS_IID cxxopts INTERFACE_INCLUDE_DIRECTORIES)
|
get_target_property(CXXOPTS_IID cxxopts INTERFACE_INCLUDE_DIRECTORIES)
|
||||||
set_target_properties(cxxopts PROPERTIES INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${CXXOPTS_IID}")
|
set_target_properties(cxxopts PROPERTIES INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${CXXOPTS_IID}")
|
||||||
|
### TODO: use SYSTEM option to FetchContent_Declare once CMake 3.25 is available and remove the above workaround
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT OPENMW_USE_SYSTEM_SQLITE3)
|
if (NOT OPENMW_USE_SYSTEM_SQLITE3)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue