From 178502c8a6c0a80fb851d1ba2bc91b628bd2829f Mon Sep 17 00:00:00 2001 From: Morten Olsen Lysgaard Date: Thu, 16 Aug 2018 18:25:04 +0200 Subject: [PATCH] CMakeLists.txt: use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR to enable embedding of filament as a subdirectory in a larger CMake project. (#103) --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e4c2bd3607..a9ba425bce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,16 +47,16 @@ endif() # Paths # ================================================================================================== # Where our external libs are -set(EXTERNAL ${CMAKE_SOURCE_DIR}/third_party) +set(EXTERNAL ${CMAKE_CURRENT_SOURCE_DIR}/third_party) # Where our libraries are -set(LIBRARIES ${CMAKE_SOURCE_DIR}/libs) +set(LIBRARIES ${CMAKE_CURRENT_SOURCE_DIR}/libs) # Where our filament code is -set(FILAMENT ${CMAKE_SOURCE_DIR}) +set(FILAMENT ${CMAKE_CURRENT_SOURCE_DIR}) # Where our tools are -set(TOOLS ${CMAKE_SOURCE_DIR}/tools) +set(TOOLS ${CMAKE_CURRENT_SOURCE_DIR}/tools) # ================================================================================================== # Compiler check