Browse Source
Update CompileDefinitions.cmake
Some applications might check for PLATFORM_WEB instead of __EMSCRIPTEN__.
pull/4044/head
Lázaro Albuquerque
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
cmake/CompileDefinitions.cmake
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
# Adding compile definitions |
|
|
|
target_compile_definitions("raylib" PRIVATE "${PLATFORM_CPP}") |
|
|
|
target_compile_definitions("raylib" PRIVATE "${GRAPHICS}") |
|
|
|
target_compile_definitions("raylib" INTERFACE "${PLATFORM_CPP}") |
|
|
|
target_compile_definitions("raylib" INTERFACE "${GRAPHICS}") |
|
|
|
|
|
|
|
function(define_if target variable) |
|
|
|
if(${${variable}}) |
|
|
|
|