From 9f9a1255b453b68d3600479f1a84d44caf2c4f02 Mon Sep 17 00:00:00 2001 From: Kai Szuttor <2150555+KaiSzuttor@users.noreply.github.com> Date: Mon, 7 Jan 2019 08:52:33 +0100 Subject: [PATCH] cmake: fix GSL linking. (#2429) --- src/core/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 1231eb8f4a2..ed9e7ecaebf 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -114,10 +114,10 @@ if(SCAFACOS) target_link_libraries(EspressoCore PRIVATE Scafacos) endif(SCAFACOS) -if(GSL) +if(GSL_FOUND) target_include_directories(EspressoCore PUBLIC ${GSL_INCLUDE_DIRS}) - target_link_libraries(EspressoCore PRIVATE gsl gslcblas) -endif(GSL) + target_link_libraries(EspressoCore PRIVATE GSL::gsl GSL::gslcblas) +endif(GSL_FOUND) if(CUDA) set(EspressoCuda_SRC