build: Avoid using CMAKE_BINARY_DIR
authorLenny Komow <lenny@lunarg.com>
Mon, 26 Feb 2018 22:29:58 +0000 (15:29 -0700)
committerMike Schuchardt <mikes@lunarg.com>
Fri, 9 Mar 2018 20:54:31 +0000 (13:54 -0700)
Using CMAKE_BINARY_DIR was breaking the use of this repo as a
submodule because the top level binary directory is different when
build as part of another repo.

demos/CMakeLists.txt

index 8b6464e..e7db053 100644 (file)
@@ -1,6 +1,6 @@
 set(DEMO_INCLUDE_DIRS
     ${CMAKE_CURRENT_BINARY_DIR}
-    ${CMAKE_BINARY_DIR}
+    ${CMAKE_CURRENT_BINARY_DIR}/..
 )
 
 if(CMAKE_SYSTEM_NAME STREQUAL "Windows")