File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,18 @@ else()
107107 set (LAPACKELIB "lapacke" )
108108 set (TMGLIB "tmglib" )
109109endif ()
110- # By default build extended _64 API for supported compilers only
110+
111+ # By default build extended _64 API for supported compilers only. This needs
112+ # CMake >= 3.18! Let's disable it by default for CMake < 3.18.
113+ if (CMAKE_VERSION VERSION_LESS "3.18" )
114+ set (INDEX64_EXT_API_DEFAULT OFF )
115+ else ()
116+ set (INDEX64_EXT_API_DEFAULT ON )
117+ endif ()
111118set (INDEX64_EXT_API_COMPILERS "Intel|GNU" )
112- option (BUILD_INDEX64_EXT_API "Build Index-64 API as extended API with _64 suffix (needs CMake >= 3.18)" ON )
119+ option (BUILD_INDEX64_EXT_API
120+ "Build Index-64 API as extended API with _64 suffix (needs CMake >= 3.18)"
121+ ${INDEX64_EXT_API_DEFAULT} )
113122message (STATUS "Build Index-64 API as extended API with _64 suffix: ${BUILD_INDEX64_EXT_API} " )
114123
115124include (GNUInstallDirs)
You can’t perform that action at this time.
0 commit comments