File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ endif()
2121if (${CMAKE_VERSION} VERSION_GREATER "3.15.0" )
2222 cmake_policy (SET CMP0091 NEW)
2323endif ()
24- cmake_policy (SET CMP0069 NEW)
25- set (CMAKE_POLICY_DEFAULT_CMP0069 NEW)
24+ if (NOT ${CMAKE_VERSION} VERSION_LESS "3.9.0" )
25+ cmake_policy (SET CMP0069 NEW)
26+ set (CMAKE_POLICY_DEFAULT_CMP0069 NEW)
27+ endif ()
2628project (ASL)
2729
2830cmake_minimum_required (VERSION 3.0)
@@ -38,7 +40,11 @@ option(BUILD_DYNRT_LIBS "Build the libraries linked against the dynamic runtime
3840option (BUILD_MT_LIBS "Build the multithreaded library" OFF )
3941option (BUILD_CPP "Build the cpp interface" OFF )
4042option (BUILD_F2C "Build the f2c library" OFF )
41- option (USE_LTO "Use link time optimization" ON )
43+ if (${CMAKE_VERSION} VERSION_LESS "3.9.0" )
44+ option (USE_LTO "Use link time optimization" OFF )
45+ else ()
46+ option (USE_LTO "Use link time optimization" ON )
47+ endif ()
4248
4349if (NOT BUILD_ASL_EXAMPLES)
4450 option (BUILD_ASL_EXAMPLES "Build the examples" OFF )
You can’t perform that action at this time.
0 commit comments