summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-07 15:18:35 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-07 15:18:35 +0000
commit1bb0fb36f6717956bab3be5c9725d2746da9ccb3 (patch)
tree05b54604223a2cf2881142864b25a3b74d1631ca /CMake
parentf7ffa787fcf499455f1f4141e1dccbb62f27f673 (diff)
CMake] install CMake files in DATADIR instead of LIBDIR under Linux.
FLTKConfig.cmake and others have been installed in arch dependent LIBDIR, but should be in arch independent DATADIR. The result is that you can always find FLTKConfig.cmake in <prefix>/share/fltk. This is where "/path/to/fltk" should point to when FLTK is used in external projects (see README.CMake.txt). Todo: test if find_package works w/o defining FLTK_DIR when installed in a standard location. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'CMake')
-rw-r--r--CMake/setup.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/setup.cmake b/CMake/setup.cmake
index 03aa9860b..9336b1a2b 100644
--- a/CMake/setup.cmake
+++ b/CMake/setup.cmake
@@ -83,7 +83,7 @@ elseif(APPLE)
set(FLTK_CONFIG_PATH FLTK/.framework/Resources/CMake)
set(FLTK_EXAMPLES_PATH share/fltk-examples)
else()
- set(FLTK_CONFIG_PATH ${FLTK_LIBDIR}/fltk)
+ set(FLTK_CONFIG_PATH ${FLTK_DATADIR}/fltk)
set(FLTK_EXAMPLES_PATH ${FLTK_DATADIR}/fltk-examples)
endif(WIN32 AND NOT CYGWIN)