File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ endif()
21
21
if (${CMAKE_VERSION} VERSION_GREATER "3.15.0" )
22
22
cmake_policy (SET CMP0091 NEW)
23
23
endif ()
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 ()
26
28
project (ASL)
27
29
28
30
cmake_minimum_required (VERSION 3.0)
@@ -38,7 +40,11 @@ option(BUILD_DYNRT_LIBS "Build the libraries linked against the dynamic runtime
38
40
option (BUILD_MT_LIBS "Build the multithreaded library" OFF )
39
41
option (BUILD_CPP "Build the cpp interface" OFF )
40
42
option (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 ()
42
48
43
49
if (NOT BUILD_ASL_EXAMPLES)
44
50
option (BUILD_ASL_EXAMPLES "Build the examples" OFF )
You can’t perform that action at this time.
0 commit comments