浏览代码
Update CompileDefinitions.cmake
Some applications might check for PLATFORM_WEB instead of __EMSCRIPTEN__.
pull/4044/head
Lázaro Albuquerque
1年前
committed by
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: B5690EEEBB952194
共有
1 个文件被更改,包括
2 次插入 和
2 次删除
-
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}}) |
|
|
|
|