Fix external_variant to actually add found include directories
This commit is contained in:
parent
525bd161cf
commit
d0fc0c8879
1 changed files with 11 additions and 6 deletions
17
external/variant/CMakeLists.txt
vendored
17
external/variant/CMakeLists.txt
vendored
|
|
@ -9,11 +9,16 @@ add_library(desktop-app::external_variant ALIAS external_variant)
|
||||||
|
|
||||||
if (DESKTOP_APP_USE_PACKAGED)
|
if (DESKTOP_APP_USE_PACKAGED)
|
||||||
find_path(VARIANT_INCLUDE_DIRS mapbox/variant.hpp)
|
find_path(VARIANT_INCLUDE_DIRS mapbox/variant.hpp)
|
||||||
|
if (VARIANT_INCLUDE_DIRS)
|
||||||
|
target_include_directories(external_variant SYSTEM
|
||||||
|
INTERFACE
|
||||||
|
${VARIANT_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT VARIANT_INCLUDE_DIRS)
|
target_include_directories(external_variant SYSTEM
|
||||||
target_include_directories(external_variant SYSTEM
|
INTERFACE
|
||||||
INTERFACE
|
${third_party_loc}/variant/include
|
||||||
${third_party_loc}/variant/include
|
)
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue