fixed bug #251: freeglut cmake modules installation would disregard
authorJohn Tsiombikas <nuclear@member.fsf.org>
Wed, 18 Sep 2019 11:58:31 +0000 (11:58 +0000)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Wed, 18 Sep 2019 11:58:31 +0000 (11:58 +0000)
CMAKE_INSTALL_LIBDIR

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1854 7f0cb862-5218-0410-a997-914c9d46530a

CMakeLists.txt

index 690f0ec..dd2709e 100644 (file)
@@ -622,7 +622,7 @@ CONFIGURE_FILE(FreeGLUTConfig.cmake.in
     "${CMAKE_CURRENT_BINARY_DIR}/FreeGLUT/FreeGLUTConfig.cmake"
     @ONLY
 )
-SET(ConfigPackageLocation lib/cmake/FreeGLUT)
+SET(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/FreeGLUT)
 INSTALL(EXPORT FreeGLUTTargets
     FILE FreeGLUTTargets.cmake
     NAMESPACE FreeGLUT::