summaryrefslogtreecommitdiff
path: root/libs/raylib/cmake/AddIfFlagCompiles.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'libs/raylib/cmake/AddIfFlagCompiles.cmake')
-rw-r--r--libs/raylib/cmake/AddIfFlagCompiles.cmake12
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/raylib/cmake/AddIfFlagCompiles.cmake b/libs/raylib/cmake/AddIfFlagCompiles.cmake
deleted file mode 100644
index 403607b..0000000
--- a/libs/raylib/cmake/AddIfFlagCompiles.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
-include(CheckCCompilerFlag)
-function(add_if_flag_compiles flag)
- CHECK_C_COMPILER_FLAG("${flag}" COMPILER_HAS_THOSE_TOGGLES)
- set(outcome "Failed")
- if(COMPILER_HAS_THOSE_TOGGLES)
- foreach(var ${ARGN})
- set(${var} "${flag} ${${var}}" PARENT_SCOPE)
- endforeach()
- set(outcome "compiles")
- endif()
- message(STATUS "Testing if ${flag} can be used -- ${outcome}")
-endfunction()