summaryrefslogtreecommitdiffstats
path: root/cmake/GodotCompilerWarnings.cmake
diff options
context:
space:
mode:
authorAndy Maloney <asmaloney@gmail.com>2022-12-23 12:38:35 -0500
committerAndy Maloney <asmaloney@gmail.com>2023-02-07 10:24:25 -0500
commit237903495820596ebd9b65d810dd6bcd04dc113c (patch)
tree2987a69f3846fdf114cab9296f45cd57247499a8 /cmake/GodotCompilerWarnings.cmake
parent50e97de6365957134ade2820b2bbf52c866c0f9a (diff)
downloadredot-cpp-237903495820596ebd9b65d810dd6bcd04dc113c.tar.gz
{cmake} Use STATIC and POSITION_INDEPENDENT_CODE
Instead of specifying flags manually, use CMake.
Diffstat (limited to 'cmake/GodotCompilerWarnings.cmake')
-rw-r--r--cmake/GodotCompilerWarnings.cmake4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmake/GodotCompilerWarnings.cmake b/cmake/GodotCompilerWarnings.cmake
index 88cd43b..423e636 100644
--- a/cmake/GodotCompilerWarnings.cmake
+++ b/cmake/GodotCompilerWarnings.cmake
@@ -1,9 +1,5 @@
# Add warnings based on compiler & version
# Set some helper variables for readability
-set( compiler_is_clang "$<OR:$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:Clang>>" )
-set( compiler_is_gnu "$<CXX_COMPILER_ID:GNU>" )
-set( compiler_is_msvc "$<CXX_COMPILER_ID:MSVC>" )
-
set( compiler_less_than_v8 "$<VERSION_LESS:$<CXX_COMPILER_VERSION>,8>" )
set( compiler_greater_than_or_equal_v9 "$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,9>" )
set( compiler_greater_than_or_equal_v11 "$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,11>" )