summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
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 /CMakeLists.txt
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 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4015f2813..8f1c5653a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,8 +58,8 @@ include(CMake/variables.cmake)
include(CMake/export.cmake)
configure_file(
- ${FLTK_SOURCE_DIR}/abi-version.cmake.in
- ${FLTK_BINARY_DIR}/FL/abi-version.h
+ ${CMAKE_SOURCE_DIR}/abi-version.cmake.in
+ ${CMAKE_BINARY_DIR}/FL/abi-version.h
@ONLY
)