some cmake fixes for windows and GSL

This commit is contained in:
Gael Guennebaud
2008-12-17 17:50:43 +00:00
parent c98fe0185e
commit 4cb63808d4
2 changed files with 7 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
find_package(GSL)
if(GSL_FOUND)
add_definitions("-DHAS_GSL")
else(GSL_FOUND)
set(GSL_LIBRARIES " ")
endif(GSL_FOUND)
set(SPARSE_LIBS "")
@@ -24,7 +26,10 @@ else(CHOLMOD_FOUND)
message("CHOLMOD not found, this optional backend won't be tested")
endif(CHOLMOD_FOUND)
enable_language(Fortran OPTIONAL)
if(NOT WIN32)
enable_language(Fortran OPTIONAL)
endif(NOT WIN32)
find_package(Umfpack)
if(UMFPACK_FOUND)
add_definitions("-DEIGEN_UMFPACK_SUPPORT")