Set GSL to OFF by default

Build server in Equinor is not updated with required minimum version for CMake, set GSL off by default
This commit is contained in:
Magne Sjaastad
2020-04-23 14:48:20 +02:00
parent 21361b7bc6
commit e4547b8e0d

View File

@@ -327,7 +327,7 @@ list(APPEND THIRD_PARTY_LIBRARIES
# GNU GSL # GNU GSL
################################################################################ ################################################################################
option(GSL_ENABLE "Enable the GNU Scientific Library for Statistics" ON) option(GSL_ENABLE "Enable the GNU Scientific Library for Statistics" OFF)
if(GSL_ENABLE) if(GSL_ENABLE)
if (NOT EXISTS "${PROJECT_SOURCE_DIR}/ThirdParty/gsl/CMakeLists.txt") if (NOT EXISTS "${PROJECT_SOURCE_DIR}/ThirdParty/gsl/CMakeLists.txt")
message(FATAL_ERROR "The GSL submodule was not downloaded! GIT_SUBMODULE was turned off or failed. Please update submodules and try again.") message(FATAL_ERROR "The GSL submodule was not downloaded! GIT_SUBMODULE was turned off or failed. Please update submodules and try again.")