1
0
Fork 0

Use system GSL since it's in the most common distributions

This commit is contained in:
Ilya Fedin 2020-02-04 05:26:52 +04:00 committed by John Preston
parent c0e7994802
commit 65ebd6a179

View file

@ -7,7 +7,15 @@
add_library(external_gsl INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_gsl ALIAS external_gsl)
if (DESKTOP_APP_USE_PACKAGED)
find_path(GSL_INCLUDE_DIRS gsl/gsl)
if (NOT GSL_INCLUDE_DIRS)
message(FATAL_ERROR "Guidelines Support Library not found")
endif()
else()
target_include_directories(external_gsl SYSTEM
INTERFACE
${third_party_loc}/GSL/include
)
endif()