opnsense-ports/games/widelands/files/patch-CMakeLists.txt
Franco Fichtner 3e3ccf651e */*: sync with upstream
Taken from: FreeBSD
2022-11-03 03:20:27 +01:00

48 lines
1.9 KiB
Text

--- CMakeLists.txt.orig 2022-10-22 11:51:16 UTC
+++ CMakeLists.txt
@@ -372,7 +372,7 @@ else()
endif()
if(NOT MSVC)
- if(CMAKE_BUILD_TYPE STREQUAL "Release")
+ if(CMAKE_BUILD_TYPE STREQUAL "Release" OR TRUE)
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))
@@ -403,12 +403,12 @@ endif()
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
@@ -499,7 +499,7 @@ endif (OPTION_BUILD_TESTS)
install (
FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION
- DESTINATION ${WL_INSTALL_BASEDIR}
+ DESTINATION ${WL_INSTALL_DOCDIR}
CONFIGURATIONS Debug;Release;None
COMPONENT CoreVersionFile
)
@@ -556,10 +556,9 @@ install(
install(
FILES
- COPYING
CREDITS
ChangeLog
- DESTINATION ${WL_INSTALL_BASEDIR}
+ DESTINATION ${WL_INSTALL_DOCDIR}
CONFIGURATIONS Debug;Release;None
COMPONENT CoreLicenseFiles
)