Disable IPO when debugging
This commit is contained in:
parent
c6879b4359
commit
ed07924b0a
|
@ -6,6 +6,7 @@ project(aocpp
|
||||||
LANGUAGES C CXX
|
LANGUAGES C CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT CMAKE_BUILD_TYPE MATCHES "^Debug$")
|
||||||
include(CheckIPOSupported)
|
include(CheckIPOSupported)
|
||||||
check_ipo_supported(RESULT result OUTPUT output)
|
check_ipo_supported(RESULT result OUTPUT output)
|
||||||
if(result)
|
if(result)
|
||||||
|
@ -13,6 +14,7 @@ if(result)
|
||||||
else()
|
else()
|
||||||
message(WARNING "IPO is not supported: ${output}")
|
message(WARNING "IPO is not supported: ${output}")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
pkg_check_modules(GMP REQUIRED IMPORTED_TARGET gmpxx)
|
pkg_check_modules(GMP REQUIRED IMPORTED_TARGET gmpxx)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user