From 5008af273c5695ca73ef0634a90b5ef6e9ea9afb Mon Sep 17 00:00:00 2001 From: Jason Erb Date: Mon, 21 Nov 2022 11:40:38 +0000 Subject: [PATCH] Replace CMAKE_SOURCE_DIR with PROJECT_SOURCE_DIR Bug: 1596 Change-Id: I62285bb912e79323b7bb3fcdaea9ff64b1a4a1b9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110172 Reviewed-by: Austin Eng Reviewed-by: Ben Clayton Kokoro: Kokoro Commit-Queue: Ben Clayton --- src/dawn/node/CMakeLists.txt | 2 +- src/dawn/node/binding/CMakeLists.txt | 2 +- src/dawn/node/interop/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dawn/node/CMakeLists.txt b/src/dawn/node/CMakeLists.txt index 8c7cdb6554..ac2a8e304d 100644 --- a/src/dawn/node/CMakeLists.txt +++ b/src/dawn/node/CMakeLists.txt @@ -72,7 +72,7 @@ set_target_properties(dawn_node PROPERTIES ) target_link_libraries(dawn_node dawn_node_binding dawn_node_interop dawn_native dawncpp dawn_proc) target_include_directories(dawn_node PRIVATE - "${CMAKE_SOURCE_DIR}" + "${PROJECT_SOURCE_DIR}" "${DAWN_THIRD_PARTY_DIR}" "${NODE_API_HEADERS_DIR}/include" "${DAWN_NODE_GEN_DIR}" diff --git a/src/dawn/node/binding/CMakeLists.txt b/src/dawn/node/binding/CMakeLists.txt index cd3fb36db1..7907ae7d72 100644 --- a/src/dawn/node/binding/CMakeLists.txt +++ b/src/dawn/node/binding/CMakeLists.txt @@ -70,7 +70,7 @@ common_compile_options(dawn_node_binding) target_include_directories(dawn_node_binding PRIVATE - "${CMAKE_SOURCE_DIR}" + "${PROJECT_SOURCE_DIR}" "${DAWN_THIRD_PARTY_DIR}" "${NODE_API_HEADERS_DIR}/include" "${DAWN_NODE_GEN_DIR}" diff --git a/src/dawn/node/interop/CMakeLists.txt b/src/dawn/node/interop/CMakeLists.txt index f774243553..ca5d4b656d 100644 --- a/src/dawn/node/interop/CMakeLists.txt +++ b/src/dawn/node/interop/CMakeLists.txt @@ -51,7 +51,7 @@ common_compile_options(dawn_node_interop) target_include_directories(dawn_node_interop PRIVATE - "${CMAKE_SOURCE_DIR}" + "${PROJECT_SOURCE_DIR}" "${DAWN_THIRD_PARTY_DIR}" "${NODE_API_HEADERS_DIR}/include" "${DAWN_NODE_GEN_DIR}"