diff --git a/nc_optimisation.cmake b/nc_optimisation.cmake index add187c..939fe16 100644 --- a/nc_optimisation.cmake +++ b/nc_optimisation.cmake @@ -4,7 +4,7 @@ include (canonical_host) ############################################################################### -option(ENABLE_LTO "enable link-time optimisation" OFF) +option(LTO "enable link-time optimisation" OFF) ##----------------------------------------------------------------------------- @@ -13,7 +13,7 @@ option(ENABLE_LTO "enable link-time optimisation" OFF) ## Rather than rely on the INTERPROCEDURAL_OPTIMISATION flag we add some ## arguments explicitly because we want a little more control over object ## creation. -if (ENABLE_LTO) +if (LTO) # Add the linker flags first otherwise the linker may not recognise the # object format append_link_flag("-fuse-linker-plugin") @@ -32,13 +32,13 @@ endif () ############################################################################### -option(ENABLE_FRAMEPOINTER "retain the framepointer even if optimising" OFF) +option(FRAMEPOINTER "retain the framepointer even if optimising" OFF) ##----------------------------------------------------------------------------- -if (ENABLE_FRAMEPOINTER) - append_compile_flags("-fno-omit-frame-pointer") -endif (ENABLE_FRAMEPOINTER) +if (FRAMEPOINTER) + append_compile_flag("-fno-omit-frame-pointer") +endif () ###############################################################################