Fix the exports of glslang-default-resource-limits (#1942)
authorDavid Dubois <dexcelstraun7@gmail.com>
Tue, 22 Oct 2019 04:31:44 +0000 (21:31 -0700)
committerJohn Kessenich <johnkslang@users.noreply.github.com>
Tue, 22 Oct 2019 04:31:44 +0000 (22:31 -0600)
StandAlone/CMakeLists.txt

index 89e91c0..0878965 100644 (file)
@@ -4,8 +4,9 @@ set_property(TARGET glslang-default-resource-limits PROPERTY FOLDER glslang)
 set_property(TARGET glslang-default-resource-limits PROPERTY POSITION_INDEPENDENT_CODE ON)
 
 target_include_directories(glslang-default-resource-limits
-                           PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
-                           PUBLIC ${PROJECT_SOURCE_DIR})
+                           PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
+                           PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>)
+
 
 set(SOURCES StandAlone.cpp DirStackFileIncluder.h)
 set(REMAPPER_SOURCES spirv-remap.cpp)