From 1bde29e9bd02a70ec41848ca7a6337982fc6bcfb Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 1 Feb 2002 09:28:20 -0500 Subject: use CMake_SOURCE and not CMAKE_ROOT --- CMakeLists.txt | 2 +- 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) -- cgit v0.12