Fix CMake modules not being added correctly
authorRaul Tambre <raul.tambre@gmail.com>
Sat, 1 Oct 2016 10:20:32 +0000 (13:20 +0300)
committerKarl Schultz <karl@lunarg.com>
Mon, 3 Oct 2016 16:31:49 +0000 (10:31 -0600)
This allows this project to be more easily included as a
sub-project of another project.

Change-Id: I098f26707f17d20353c91a4adb7bfb83d90a99fa

CMakeLists.txt

index 6330195..5685427 100644 (file)
@@ -52,7 +52,7 @@ else()
     message(FATAL_ERROR "Unsupported Platform!")
 endif()
 
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 
 # Header file for CMake settings
 include_directories("${PROJECT_SOURCE_DIR}/include")