cmake: export to cmake/ on Windows Windows doesn't look for a subdirectory here.
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}")