diff --git a/CMakeLists.txt b/CMakeLists.txt index 52c27a746..8b664bf7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,10 +29,19 @@ option(CHATTERINO_PLUGINS "Enable EXPERIMENTAL plugin support in Chatterino" OFF option(CHATTERINO_UPDATER "Enable update checks" ON) mark_as_advanced(CHATTERINO_UPDATER) +if(BUILD_TESTS) + list(APPEND VCPKG_MANIFEST_FEATURES "tests") +endif() +if(BUILD_BENCHMARKS) + list(APPEND VCPKG_MANIFEST_FEATURES "benchmarks") +endif() + +project(chatterino VERSION 2.4.6) + if(CHATTERINO_LTO) include(CheckIPOSupported) check_ipo_supported(RESULT CHATTERINO_ENABLE_LTO OUTPUT IPO_ERROR) - message(STATUS "LTO: Enabled (Supported: ${CHATTERINO_ENABLE_LTO})") + message(STATUS "LTO: Enabled (Supported: ${CHATTERINO_ENABLE_LTO} - ${IPO_ERROR})") else() message(STATUS "LTO: Disabled") endif() @@ -43,15 +52,6 @@ else() set(MAJOR_QT_VERSION "5") endif() -if(BUILD_TESTS) - list(APPEND VCPKG_MANIFEST_FEATURES "tests") -endif() -if(BUILD_BENCHMARKS) - list(APPEND VCPKG_MANIFEST_FEATURES "benchmarks") -endif() - -project(chatterino VERSION 2.4.6) - find_program(CCACHE_PROGRAM ccache) find_program(SCCACHE_PROGRAM sccache) if (SCCACHE_PROGRAM)