diff --git a/CMakePresets.json b/CMakePresets.json index 17bd8df6..f1bd0656 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -1,68 +1,64 @@ { - "version": 7, - "configurePresets": [ - { - "name": "default", - "description": "Configuration setting for all modules with preferred toolchain", - "generator": "Ninja", - "binaryDir": "${sourceDir}/build", - "installDir": "/install", - "toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake", - "cacheVariables": { - "BUILD_MODULES": "all;examples", - "ENABLE_IPO": "OFF" - } - }, - { - "name": "fast", - "description": "Configuration setting for all modules with preferred toolchain", - "generator": "Ninja", - "binaryDir": "${sourceDir}/build", - "installDir": "/install", - "toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake", - "cacheVariables": { - "BUILD_MODULES": "all;examples", - "ENABLE_LINTER": "OFF", - "CMAKE_BUILD_TYPE": "Release", - "ENABLE_IPO": "OFF" - } - }, - { - "name": "deps-docker", - "description": "Configuration setting for all modules with preferred toolchain", - "generator": "Ninja", - "binaryDir": "${sourceDir}/build", - "installDir": "/install", - "toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake", - "cacheVariables": { - "BUILD_MODULES": "all;examples", - "ENABLE_LINTER": "OFF", - "CMAKE_BUILD_TYPE": "Release", - "ENABLE_IPO": "OFF" - } - }, - { - "name": "CI", - "description": "Configuration setting for all modules with preferred toolchain", - "generator": "Ninja", - "binaryDir": "${sourceDir}/build", - "installDir": "/install", - "toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake", - "cacheVariables": { - "BUILD_MODULES": "all;examples", - "ENABLE_LINTER": "ON", - "FORMAT_FAIL_ON_CHANGE": "ON", - "CMAKE_BUILD_TYPE": "Release", - "CMAKE_PREFIX_PATH": "/install", - "ENABLE_IPO": "OFF" - } - } - ], - "buildPresets": [ - { - "name": "default", - "description": "Preferred build settings", - "configurePreset": "default" - } - ] + "version": 7, + "configurePresets": [ + { + "name": "default", + "description": "Configuration setting for all modules with preferred toolchain", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build", + "installDir": "/install", + "toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake", + "cacheVariables": { + "BUILD_MODULES": "all;examples" + } + }, + { + "name": "fast", + "description": "Configuration setting for all modules with preferred toolchain", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build", + "installDir": "/install", + "toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake", + "cacheVariables": { + "BUILD_MODULES": "all;examples", + "ENABLE_LINTER": "OFF", + "CMAKE_BUILD_TYPE": "Release" + } + }, + { + "name": "deps-docker", + "description": "Configuration setting for all modules with preferred toolchain", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build", + "installDir": "/install", + "toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake", + "cacheVariables": { + "BUILD_MODULES": "all;examples", + "ENABLE_LINTER": "OFF", + "CMAKE_BUILD_TYPE": "Release" + } + }, + { + "name": "CI", + "description": "Configuration setting for all modules with preferred toolchain", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build", + "installDir": "/install", + "toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake", + "cacheVariables": { + "BUILD_MODULES": "all;examples", + "ENABLE_LINTER": "ON", + "FORMAT_FAIL_ON_CHANGE": "ON", + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_PREFIX_PATH": "/install" + } + } + ], + "buildPresets": [ + { + "name": "default", + "description": "Preferred build settings", + "configurePreset": "default" + } + ] } diff --git a/cmake/03_compiler_config.cmake b/cmake/03_compiler_config.cmake index 7b897715..cd137afe 100644 --- a/cmake/03_compiler_config.cmake +++ b/cmake/03_compiler_config.cmake @@ -106,7 +106,8 @@ if(LIST_OF_SANITIZERS) endif() # Set whether to enable inter-procedural optimisation -option(ENABLE_IPO "Enable interprocedural optimization" ON) +# TODO: This is working with latest release of Clang. +option(ENABLE_IPO "Enable interprocedural optimization" OFF) if(ENABLE_IPO) include(CheckIPOSupported) check_ipo_supported(RESULT ipo_result OUTPUT output)