diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-06-29 17:51:27 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-06-29 17:51:27 +0000 |
| commit | 3eb6b7ea5843559d45806d20729934abd5fc3911 (patch) | |
| tree | 6f4b18f0efddf7739fc055d19c2532734f473667 /test | |
| parent | 7dc496e97d3d9fbc71ffd75b6c4ceb5cfe93ffa5 (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 'test')
| -rw-r--r-- | test/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index cf2e90c9d..e118d7c86 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -17,7 +17,7 @@ # ####################################################################### -set(EXECUTABLE_OUTPUT_PATH ${FLTK_BINARY_DIR}/bin/examples) +set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin/examples) ####################################################################### # audio libs for test apps |
