Commit 5bc9d6a7ffb912c9242cf8e7bdef4d6eafd0c650

Ben Boeckel 2016-07-05T14:17:32

cmake: export to cmake/ on Windows Windows doesn't look for a subdirectory here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b723f1..ea4545a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,10 +66,10 @@ configure_file(
 if (WIN32)
   set(cmakedir cmake)
 else ()
-  set(cmakedir lib/cmake)
+  set(cmakedir lib/cmake/FTGL)
 endif ()
 
-install(EXPORT FTGL-targets DESTINATION ${cmakedir}/FTGL)
+install(EXPORT FTGL-targets DESTINATION "${cmakedir}")
 install(
   FILES       "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/FTGLConfig.cmake"
-  DESTINATION "${cmakedir}/FTGL")
+  DESTINATION "${cmakedir}")