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}"