mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-05 20:55:58 +00:00
Always define TINT_BUILD_SPV_PARSER.
This CL always sets the define for building the SPV_PARSER. This fixes undefined errors on certian platforms. Change-Id: I5f84295cb7ddf23d64efd9a4d00717c84bc698aa Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/16800 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: David Neto <dneto@google.com>
This commit is contained in:
parent
ab0cdaf652
commit
37dbf99e34
@ -69,9 +69,9 @@ endif()
|
|||||||
function(tint_default_compile_options TARGET)
|
function(tint_default_compile_options TARGET)
|
||||||
include_directories("${PROJECT_SOURCE_DIR}")
|
include_directories("${PROJECT_SOURCE_DIR}")
|
||||||
|
|
||||||
if (${TINT_BUILD_SPV_PARSER})
|
target_compile_definitions(${TARGET} PRIVATE
|
||||||
target_compile_definitions(${TARGET} PRIVATE -DTINT_BUILD_SPV_PARSER=1)
|
-DTINT_BUILD_SPV_PARSER=$<BOOL:${TINT_BUILD_SPV_PARSER}>)
|
||||||
endif()
|
|
||||||
if (${COMPILER_IS_LIKE_GNU})
|
if (${COMPILER_IS_LIKE_GNU})
|
||||||
target_compile_options(${TARGET} PRIVATE
|
target_compile_options(${TARGET} PRIVATE
|
||||||
-std=c++14
|
-std=c++14
|
||||||
|
Loading…
x
Reference in New Issue
Block a user