mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 06:34:55 +02:00
linux server in production now online
This commit is contained in:
12
cmake/FindLTO.cmake
Normal file
12
cmake/FindLTO.cmake
Normal file
@@ -0,0 +1,12 @@
|
||||
if(__FIND_LTO_CMAKE__)
|
||||
return()
|
||||
endif()
|
||||
set(__FIND_LTO_CMAKE__ TRUE)
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
enable_language(CXX)
|
||||
|
||||
check_cxx_compiler_flag("-flto" COMPILER_KNOWS_LTO)
|
||||
if(COMPILER_KNOWS_LTO)
|
||||
add_compile_options(-flto)
|
||||
endif()
|
Reference in New Issue
Block a user