check GSL version in cmake files

This commit is contained in:
Gael Guennebaud
2009-01-27 16:04:16 +00:00
parent f6aa60bcf3
commit 4b09865b8f
2 changed files with 14 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
find_package(GSL)
if(GSL_FOUND AND GSL_VERSION_MINOR LESS 9)
set(GSL_FOUND "")
endif(GSL_FOUND AND GSL_VERSION_MINOR LESS 9)
if(GSL_FOUND)
add_definitions("-DHAS_GSL" ${GSL_DEFINITIONS})
include_directories(${GSL_INCLUDE_DIR})