From 37dbf99e34ac8a7b8309891b2a8c0155e1f2d492 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Wed, 11 Mar 2020 18:43:12 +0000 Subject: [PATCH] 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 Commit-Queue: David Neto --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c4bffc833..d6c60a2297 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,9 +69,9 @@ endif() function(tint_default_compile_options TARGET) include_directories("${PROJECT_SOURCE_DIR}") - if (${TINT_BUILD_SPV_PARSER}) - target_compile_definitions(${TARGET} PRIVATE -DTINT_BUILD_SPV_PARSER=1) - endif() + target_compile_definitions(${TARGET} PRIVATE + -DTINT_BUILD_SPV_PARSER=$) + if (${COMPILER_IS_LIKE_GNU}) target_compile_options(${TARGET} PRIVATE -std=c++14