Remove main.c, rename variable in CMakeLists.txt
This commit is contained in:
@@ -46,14 +46,14 @@ include(CheckIPOSupported)
|
||||
include(CheckIncludeFile)
|
||||
include(CheckSymbolExists)
|
||||
|
||||
# Check for IPO/LTO
|
||||
check_ipo_supported(RESULT supported)
|
||||
|
||||
# Unit testing and coverage configuration
|
||||
set(TESTING ON CACHE BOOL "Enable unit-testing")
|
||||
set(COVERAGE OFF CACHE BOOL "Enable coverage")
|
||||
|
||||
if(supported)
|
||||
# Check for IPO/LTO
|
||||
check_ipo_supported(RESULT LTO_SUPPORTED)
|
||||
|
||||
if(LTO_SUPPORTED)
|
||||
message(STATUS "IPO/LTO enabled")
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user