mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03: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
|
||||
option(OPENMW_USE_SYSTEM_CXXOPTS "Use system provided cxxopts library" ON)
|
||||
if(OPENMW_USE_SYSTEM_CXXOPTS)
|
||||
find_package(cxxopts REQUIRED)
|
||||
find_package(cxxopts CONFIG REQUIRED)
|
||||
endif()
|
||||
|
||||
# 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
|
||||
get_target_property(CXXOPTS_IID cxxopts INTERFACE_INCLUDE_DIRECTORIES)
|
||||
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()
|
||||
|
||||
if (NOT OPENMW_USE_SYSTEM_SQLITE3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue