mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-06 19:10:36 +08:00
some cmake fixes for windows and GSL
This commit is contained in:
parent
c98fe0185e
commit
4cb63808d4
@ -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")
|
||||
|
@ -274,7 +274,7 @@ int main(int argc, char *argv[])
|
||||
std::cout << "Argument " << argv[i] << " conflicting with a former argument" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
seed = strtoul(argv[i]+1, 0, 10);
|
||||
seed = int(strtoul(argv[i]+1, 0, 10));
|
||||
has_set_seed = true;
|
||||
bool ok = seed!=0;
|
||||
if(!ok)
|
||||
|
Loading…
x
Reference in New Issue
Block a user