From: Mark Lobodzinski Date: Tue, 31 Jan 2017 14:35:19 +0000 (-0700) Subject: cmake: GH1428, Reenable subproject builds X-Git-Tag: upstream/1.1.92~1685 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e555ea29c5306a6ce085eb14dcbac605a0e7265;p=platform%2Fupstream%2FVulkan-Tools.git cmake: GH1428, Reenable subproject builds 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 77e365a..8c01f73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")