View Issue Details

IDProjectCategoryView StatusLast Update
0005957The Dark ModCodingpublic04.05.2022 18:02
Reporteres20490446e Assigned To 
PrioritynormalSeveritynormalReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSManjaroOS VersionStable
Product VersionTDM 2.10 
Summary0005957: "add_precompiled_header" wrongly used with multiple parameters at "CMakeLists.txt"
DescriptionIf I compile the game using the default makepkg flags:

CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection

CXXFLAGS=$CFLAGS -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS

LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now


It detects an error:

...
  $<BOOL> expression requires exactly one parameter.
Call Stack (most recent call first):
  sys/cmake/PrecompiledHeader.cmake:40 (export_all_flags)
  CMakeLists.txt:170 (add_precompiled_header)


CMake Error at sys/cmake/PrecompiledHeader.cmake:77 (file):
  Error evaluating generator expression:

    $<BOOL:$<TARGET_PROPERTY:TheDarkMod,COMPILE_FLAGS>;-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS;-g -ffast-math -O3 -DNDEBUG;-std=c++14>

  $<BOOL> expression requires exactly one parameter.
Call Stack (most recent call first):
  sys/cmake/PrecompiledHeader.cmake:40 (export_all_flags)
  CMakeLists.txt:170 (add_precompiled_header)


CMake Generate step failed. Build files cannot be regenerated correctly.,
==> ERROR: A failure occurred in build().
    Aborting...,


Blanking the flags makes compilation to succeed thought.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
04.05.2022 18:02 es20490446e New Issue