cmake: GH1428, Reenable subproject builds
authorMark Lobodzinski <mark@lunarg.com>
Tue, 31 Jan 2017 14:35:19 +0000 (07:35 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 31 Jan 2017 14:35:19 +0000 (07:35 -0700)
SCRIPTS dir was defined using CMAKE_SOURCE_DIR which prevented LVL
from building correctly if used as a subproject. Changed to use
CMAKE_CURRENT_SOURCE_DIR.

Change-Id: I201fcfde78b65df80c3c74373a26e4d518770806

CMakeLists.txt

index 77e365a..8c01f73 100644 (file)
@@ -40,7 +40,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
     endif()
 endif()
 
-set(SCRIPTS_DIR "${CMAKE_SOURCE_DIR}/scripts")
+set(SCRIPTS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/scripts")
 
 # Header file for CMake settings
 include_directories("${PROJECT_SOURCE_DIR}/include")