7
0
mirror of https://gitlab.com/raylibtemplates/rt.git synced 2026-06-19 23:35:10 -04:00

Initial Commit

This commit is contained in:
maple
2025-11-03 02:11:38 +00:00
commit e6c3ec5406
1235 changed files with 593872 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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()