Skip to content

Commit

Permalink
cmake: fix GSL linking. (#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSzuttor authored and fweik committed Jan 7, 2019
1 parent 71481b1 commit 9f9a125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f9a125

Please sign in to comment.