diff options
Diffstat (limited to 'etc/lto.cmake')
| -rw-r--r-- | etc/lto.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/lto.cmake b/etc/lto.cmake new file mode 100644 index 0000000..517ec14 --- /dev/null +++ b/etc/lto.cmake @@ -0,0 +1,8 @@ +include(CheckIPOSupported) +check_ipo_supported(RESULT ipo_supported OUTPUT error) +if(ipo_supported) + message(STATUS "IPO / LTO supported and enabled.") + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) +else() + message(STATUS "IPO / LTO not supported: <${error}>") +endif()
\ No newline at end of file |
