summaryrefslogtreecommitdiff
path: root/CMake/resources.cmake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-06-29 17:51:27 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-06-29 17:51:27 +0000
commit3eb6b7ea5843559d45806d20729934abd5fc3911 (patch)
tree6f4b18f0efddf7739fc055d19c2532734f473667 /CMake/resources.cmake
parent7dc496e97d3d9fbc71ffd75b6c4ceb5cfe93ffa5 (diff)
CMake: replace improperly used variables with correct ones.
CMake variables FLTK_SOURCE_DIR and FLTK_BINARY_DIR are only defined if the project name is exactly "FLTK" (all uppercase). These variables are generated (set) by CMake as <PROJECT_NAME>_SOURCE_DIR etc. The correct variables are CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR, respectively, which are always defined. This commit enables future changes of the FLTK project name, e.g. to "fltk" or "fltk-1.4.0" (a versioned project name), if we like... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'CMake/resources.cmake')
-rw-r--r--CMake/resources.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/resources.cmake b/CMake/resources.cmake
index 259afabb6..ae49b721d 100644
--- a/CMake/resources.cmake
+++ b/CMake/resources.cmake
@@ -187,8 +187,8 @@ if(HAVE_SCANDIR AND NOT HAVE_SCANDIR_POSIX)
set(MSG "POSIX compatible scandir")
message(STATUS "Looking for ${MSG}")
try_compile(V
- ${FLTK_BINARY_DIR}
- ${FLTK_SOURCE_DIR}/CMake/posixScandir.cxx
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/CMake/posixScandir.cxx
)
if(V)
message(STATUS "${MSG} - found")