Commit Graph

17 Commits

Author SHA1 Message Date
akallabeth
ba8fd2ada5
[cmake] force configuration options
limit multiconfiguration options to supported types
2024-12-05 09:36:23 +01:00
akallabeth
faae38120c
[cmake,format] reformat all cmake files 2024-11-27 20:41:48 +01:00
akallabeth
baebc02881
[cmake,compiler] check for GCC/clang greater equal 10
for -fdebug-prefix-map et al check for compilers supporting it.
2024-11-21 15:05:18 +01:00
akallabeth
6f3e9d3dfc
Merge pull request #10850 from akallabeth/pragma-warn
Pragma warn
2024-11-14 15:01:07 +01:00
akallabeth
af7849b579
[cmake] use relative paths for debug symbols
When not building a Debug configuration use relative paths for __FILE__
et al in the debug symbol entries
2024-11-14 13:45:05 +01:00
akallabeth
8883ccc503
[cmake] remove GCC -Wunknown-pragmas workaround
The offending pragma definitions are now only defined for coverity
builds
2024-11-14 13:26:21 +01:00
akallabeth
16657adf60
[cmake] workaround for older GCC
To fix the missing pragma -Wunknown-pragmas support for older GCC
disable this warning altogether if such a compiler is detected
2024-11-13 20:21:33 +01:00
akallabeth
bc70bbd30e
[cmake] unify -fno-omit-frame-pointer 2024-11-08 09:01:25 +01:00
akallabeth
ebcf4c44a9
[cmake,gcc,clang] use -fmacro-prefix-map and -ffile-prefix-map
Instead of some bash path substitution only working with Makefiles use
the compiler options to map source and build directories to some
defaults
2024-11-07 16:52:01 +01:00
Armin Novak
b73befd677
[cmake] reenable -Wlanguage-extension-token
since the offending macros are now silenced reenable the warning so we
are warned about unintentional use of extensions.
2024-10-09 10:09:49 +02:00
akallabeth
008de893fe [cmake,c++] define NOMINMAX
Windows header define min and max posing issues with c++ standard
library
https://stackoverflow.com/questions/4913922/possible-problems-with-nominmax-on-visual-c
2024-10-08 16:36:01 +02:00
Armin Novak
9fc7e5bfd9
[cmake] default ENABLE_WARNING_VERBOSE=OFF 2024-09-25 10:28:49 +02:00
akallabeth
ed942f8c20
[warnings,c++] deactivate -Wexit-time-destructors
This warning can be ignored as on all supported platforms memory, file
and network resources are cleared up on program termination.
2024-09-20 17:35:52 +02:00
akallabeth
516cf54c75
[compiler,warnings] disable -Wlanguage-extension-token
Expression Statements are not supported by ISO C but we require it for
certain macros. Disable this warning as it just yields false positives.
2024-09-20 13:34:24 +02:00
Armin Novak
107a8d9f48
[compiler] disable C++ warnings
Projects are set to require C++ 17, so disable all warnings complaining
about compatibility with previous versions of the standard.
2024-09-20 09:17:22 +02:00
Armin Novak
c509aabc08
[cmake] disable -Wdisabled-macro-expansion
this warning does not yield useful results for FreeRDP, disable by
default.
2024-09-20 09:16:33 +02:00
Armin Novak
96052ca2fb
[build,c++] add CXXCompilerFlags to set warnings
Just like with the C components and CompilerFlags.cmake add a
configuration for C++ that disables specific warnings only found in C++
code.
2024-09-20 09:16:30 +02:00