Commit Graph

34 Commits

Author SHA1 Message Date
Ferry Huberts
4652ad8682 Fix compiler warnings (-Wsuggest-attribute=noreturn)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-17 08:45:52 +02:00
Leonid Stryzhevskyi
78f2232012
Merge pull request #822 from fhuberts/fix-Wdangling-reference
Fix compiler warnings (-Wdangling-reference)
2023-08-17 01:57:59 +03:00
Leonid Stryzhevskyi
75fc72b02c
Merge pull request #821 from fhuberts/fix-Wconversion
Fix compiler warnings (-Wconversion)
2023-08-17 01:56:31 +03:00
Leonid Stryzhevskyi
61f394ad4f
Merge pull request #820 from fhuberts/fix-Warith-conversion
Enable compiler warnings (-Warith-conversion)
2023-08-17 01:54:41 +03:00
Leonid Stryzhevskyi
ddd05b6ef5
Merge pull request #819 from fhuberts/fix-Wsuggest-attribute=format
Fix compiler warnings (-Wsuggest-attribute=format)
2023-08-17 01:53:28 +03:00
Ferry Huberts
9f97e4ae61 Fix compiler warnings (-Wdangling-reference)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 20:44:41 +02:00
Ferry Huberts
129dfeb782 Forgot to remove the flag -Wno-suggest-attribute=format
No impact on the build.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 20:25:24 +02:00
Ferry Huberts
85ee98509a Fix compiler warnings (-Wconversion)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 14:02:42 +02:00
Ferry Huberts
7b3c54426c Enable compiler warnings (-Warith-conversion)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 14:00:42 +02:00
Ferry Huberts
6dfe302829 Fix compiler warnings (-Wsuggest-attribute=format)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 13:56:27 +02:00
Ferry Huberts
f116a9619a Fix compiler warnings (-Wuseless-cast)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-16 13:48:14 +02:00
Ferry Huberts
2b4f8f023b These are C++ compiler flags
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-15 15:14:30 +02:00
Ferry Huberts
2a6c8e2692 Only test compiler flags when needed
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-15 13:52:23 +02:00
Ferry Huberts
0d2985cacd Add some comments
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-14 23:10:08 +02:00
Ferry Huberts
6553029e2f Only apply the compiler flags for GNU
That's what they are originally tuned for.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-14 23:10:08 +02:00
Ferry Huberts
16392c700b Convert all 'add_compiler_flags' to 'add_cxx_compiler_flags'
This codebase only contains C++ code.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-14 23:10:08 +02:00
Ferry Huberts
c0f0b46ed8 Remove a superfluous line
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-14 23:10:08 +02:00
Leonid Stryzhevskyi
52b0d0b613
Merge pull request #805 from fhuberts/fix-Wold-style-cast
Fix compiler warnings (-Wold-style-cast)
2023-08-12 04:00:45 +03:00
Ferry Huberts
967a6906a4 Fix compiler warnings (-Wctor-dtor-privacy)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-07 18:03:01 +02:00
Leonid Stryzhevskyi
ec227380e4
Merge pull request #808 from fhuberts/fix-Wmissing-field-initializers
Fix compiler warnings (-Wmissing-field-initializers)
2023-08-07 17:36:42 +03:00
Ferry Huberts
c81189a775 Fix compiler warnings (-Wmissing-field-initializers)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-07 11:15:39 +02:00
Ferry Huberts
40f5b11194 Fix compiler warnings (-Wunused-variable)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-07 11:14:57 +02:00
Ferry Huberts
8ff0b0f948 Fix compiler warnings (-Wold-style-cast)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-07 11:14:19 +02:00
Ferry Huberts
1ab56bc771 Try to fix the Windows build
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-06 10:03:28 +02:00
Ferry Huberts
a52d1500fe More hardening compiler flags
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-05 15:58:11 +02:00
Ferry Huberts
579e9f3319 Add some more possible compiler flags
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-05 15:58:05 +02:00
Ferry Huberts
c50959f6e6 Move compiler flags into a separate cmake file
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-08-05 11:43:20 +02:00
Steffen Olszewski
8cd6dd7c37 Filter file extensions without including the path prefix
Since the file lists contain only valid paths, it is sufficient to anchor
the regular expression at the end only instead of matching the full path.
This prevents regular expression injections.
2023-05-23 19:09:32 +02:00
Steffen Olszewski
7467f14193 Create file lists without using regular expression
Using the path prefix as part of a regular expression can lead to a
regular expression injection, the path might contain regular expression
meta characters that get interpreted. Use cmake_path() instead to filter
path prefixes.
2023-05-23 19:07:18 +02:00
Steffen Olszewski
ff36530506 Add utility function to add source groups for files of a target
This function uses default groups like Visual Studio and additional groups
for files commonly used by CMake builds.

This increases the required CMake version to 3.20.
2023-05-10 21:49:38 +02:00
Julian Ste
72e7fa973e
Update module-install.cmake 2021-11-26 09:38:47 +01:00
Sébastien Gallou
47b34ef74c Make MSVC runtime setting available for all projects 2021-06-11 09:55:01 +02:00
lganzzzo
c85dae66ac update installation scripts 2019-01-28 18:16:07 +02:00
lganzzzo
cc90da292c better cmake scripts 2019-01-25 16:38:19 +02:00