--- CMakeLists.txt.orig 2024-03-28 10:12:05 UTC +++ CMakeLists.txt @@ -328,7 +328,7 @@ if(NOT MSVC) endif() if(NOT MSVC) - if(CMAKE_BUILD_TYPE STREQUAL "Release") + if(TRUE OR CMAKE_BUILD_TYPE STREQUAL "Release") message(STATUS "Compiler warnings will be ignored.") elseif(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") AND ( ((NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0)) AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.2)) @@ -360,12 +360,12 @@ if(USE_FLTO_IF_AVAILABLE STREQUAL "yes") if(USE_FLTO_IF_AVAILABLE STREQUAL "yes") # Cross-compile-unit optimization not supported by gcc with debug on! # Therefore, this may only be done with Release builds. -if(CMAKE_BUILD_TYPE STREQUAL "Release") +if(TRUE OR CMAKE_BUILD_TYPE STREQUAL "Release") # Only tested on Linux. Might work also on other platforms. # If tested and found good, remove this check - if (CMAKE_SYSTEM MATCHES "Linux") + if (TRUE OR CMAKE_SYSTEM MATCHES "Linux") # Usage of -flto tested only with gcc 8.3 and 9.3 (2020-04); when in doubt, leaving it out.. - if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0)) + if(TRUE OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0)) # # The execution jumps between compile units rather often. -flot allows optimization across # comple units. Binary size reduced by >15% on tested environments. This does not directly @@ -479,13 +479,6 @@ endif (OPTION_BUILD_TESTS) ) endif (OPTION_BUILD_TESTS) -install ( - FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION - DESTINATION ${WL_INSTALL_BASEDIR} - CONFIGURATIONS Debug;Release;None - COMPONENT CoreVersionFile -) - # Installation. add_subdirectory(doc) if(OPTION_BUILD_TRANSLATIONS) @@ -538,10 +531,9 @@ install( install( FILES - COPYING CREDITS ChangeLog - DESTINATION ${WL_INSTALL_BASEDIR} + DESTINATION ${WL_INSTALL_DOCDIR} CONFIGURATIONS Debug;Release;None COMPONENT CoreLicenseFiles )