diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | Source/CMakeLists.txt | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d5e9fed..3b14411 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ PROJECT(CMake) SUBDIRS(Source Modules Templates Utilities) # Include the standard Dart testing module -INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake) +INCLUDE (${CMake_SOURCE_DIR}/Modules/Dart.cmake) INCLUDE (${CMAKE_BINARY_DIR}/Source/InitialConfigureFlags.cmake OPTIONAL) IF(CMAKE_CONFIGURE_INSTALL_PREFIX) SET(CMAKE_INSTALL_PREFIX ${CMAKE_CONFIGURE_INSTALL_PREFIX} ) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index d81f1ab..653c011 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -1,4 +1,4 @@ -INCLUDE (${CMAKE_ROOT}/Modules/FindFLTK.cmake) +INCLUDE (${CMake_SOURCE_DIR}/Modules/FindFLTK.cmake) IF(FLTK_LIBRARY) IF(FLTK_INCLUDE_PATH) OPTION(BUILD_FLTK_GUI "Build FLTK CMake GUI." "OFF") @@ -48,10 +48,10 @@ IF (WIN32) ENDIF (WIN32) IF (UNIX) - INCLUDE (${CMAKE_ROOT}/Modules/FindCurses.cmake OPTIONAL) + INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL) IF (CURSES_LIBRARY) SUBDIRS(CursesDialog/form) - INCLUDE(${CMAKE_ROOT}/Source/CursesDialog/CMakeLists.txt) + INCLUDE(${CMake_SOURCE_DIR}/Source/CursesDialog/CMakeLists.txt) ENDIF (CURSES_LIBRARY) ENDIF (UNIX) |