diff options
author | Greg Fischer <greg@lunarg.com> | 2021-10-19 17:09:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 17:09:56 -0600 |
commit | 6351fcef2888cf76a4405d756642c1e1ba2b4169 (patch) | |
tree | bfceb98afd01a110d4a13ce4ba5e244b9bd1b13a | |
parent | 2598bc7a5b41c2cd3679f532040631ba051abc67 (diff) | |
parent | 36333d1fb9f2375ca3595315e7643968aa6b3a29 (diff) | |
download | glslang-6351fcef2888cf76a4405d756642c1e1ba2b4169.tar.gz |
Merge pull request #2786 from dneto0/current-source-dir
Fix Cmake rule for extension header generation
-rw-r--r-- | StandAlone/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/StandAlone/CMakeLists.txt b/StandAlone/CMakeLists.txt index 4d5545c7..2b163e7f 100644 --- a/StandAlone/CMakeLists.txt +++ b/StandAlone/CMakeLists.txt @@ -34,8 +34,8 @@ find_host_package(PythonInterp 3 REQUIRED) set(GLSLANG_INTRINSIC_H "${GLSLANG_GENERATED_INCLUDEDIR}/glslang/glsl_intrinsic_header.h") -set(GLSLANG_INTRINSIC_PY "${CMAKE_SOURCE_DIR}/gen_extension_headers.py") -set(GLSLANG_INTRINSIC_HEADER_DIR "${CMAKE_SOURCE_DIR}/glslang/ExtensionHeaders") +set(GLSLANG_INTRINSIC_PY "${CMAKE_CURRENT_SOURCE_DIR}/../gen_extension_headers.py") +set(GLSLANG_INTRINSIC_HEADER_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../glslang/ExtensionHeaders") add_custom_command( OUTPUT ${GLSLANG_INTRINSIC_H} @@ -124,4 +124,4 @@ if(ENABLE_GLSLANG_INSTALL) ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif() install(EXPORT glslang-default-resource-limitsTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake) -endif()
\ No newline at end of file +endif() |