Lowered CMake minimum requirement to 3.7.2
Tested on Raspbian
This commit is contained in:
parent
e2ed9ad950
commit
9effc5e0fe
1 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.12)
|
cmake_minimum_required(VERSION 3.7.2)
|
||||||
|
|
||||||
option(STATIC "Produce a statically-linked executable (good for Windows builds, so you don't need to bundle DLL files)" OFF)
|
option(STATIC "Produce a statically-linked executable (good for Windows builds, so you don't need to bundle DLL files)" OFF)
|
||||||
option(JAPANESE "Enable the Japanese-language build" OFF)
|
option(JAPANESE "Enable the Japanese-language build" OFF)
|
||||||
|
@ -264,11 +264,13 @@ endforeach()
|
||||||
|
|
||||||
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
# Enable link-time optimisation if available
|
# Enable link-time optimisation if available
|
||||||
include(CheckIPOSupported)
|
include(CheckIPOSupported OPTIONAL RESULT_VARIABLE result)
|
||||||
|
if (result)
|
||||||
check_ipo_supported(RESULT result)
|
check_ipo_supported(RESULT result)
|
||||||
if (result)
|
if (result)
|
||||||
set_target_properties(CSE2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
|
set_target_properties(CSE2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
|
|
Loading…
Add table
Reference in a new issue