externals: allow user to use system inih (#7073)
This commit is contained in:
parent
4c59443ed2
commit
956b0868fd
6 changed files with 74 additions and 4 deletions
8
externals/CMakeLists.txt
vendored
8
externals/CMakeLists.txt
vendored
|
@ -126,7 +126,13 @@ set(BUILD_EXTERNAL OFF CACHE BOOL "")
|
|||
add_subdirectory(glslang)
|
||||
|
||||
# inih
|
||||
add_subdirectory(inih)
|
||||
if(USE_SYSTEM_INIH)
|
||||
find_package(inih REQUIRED COMPONENTS inih inir)
|
||||
add_library(inih INTERFACE)
|
||||
target_link_libraries(inih INTERFACE inih::inih inih::inir)
|
||||
else()
|
||||
add_subdirectory(inih)
|
||||
endif()
|
||||
|
||||
# MicroProfile
|
||||
add_library(microprofile INTERFACE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue