mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-31 03:09:17 -05:00
Update CompileDefinitions.cmake
Some applications might check for PLATFORM_WEB instead of __EMSCRIPTEN__.
This commit is contained in:
committed by
GitHub
parent
7e349fd78b
commit
f53dfb0a8a
@ -1,6 +1,6 @@
|
|||||||
# Adding compile definitions
|
# Adding compile definitions
|
||||||
target_compile_definitions("raylib" PRIVATE "${PLATFORM_CPP}")
|
target_compile_definitions("raylib" INTERFACE "${PLATFORM_CPP}")
|
||||||
target_compile_definitions("raylib" PRIVATE "${GRAPHICS}")
|
target_compile_definitions("raylib" INTERFACE "${GRAPHICS}")
|
||||||
|
|
||||||
function(define_if target variable)
|
function(define_if target variable)
|
||||||
if(${${variable}})
|
if(${${variable}})
|
||||||
|
|||||||
Reference in New Issue
Block a user