mirror of
https://github.com/bensuperpc/astar.git
synced 2026-05-05 10:55:18 +02:00
7d81e22900
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
12 lines
292 B
CMake
Executable File
12 lines
292 B
CMake
Executable File
cmake_minimum_required(VERSION 3.9.0)
|
|
|
|
include(CheckIPOSupported)
|
|
check_ipo_supported(RESULT supported OUTPUT error)
|
|
|
|
if(supported)
|
|
message(STATUS "IPO / LTO enabled")
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
|
|
else()
|
|
message(STATUS "IPO / LTO not supported: <${error}>")
|
|
endif()
|