Explorar o código

Fixed bug 4928 - CMakeLists.txt: put cmake package helpers in proper libdir

Tiago O.

Use LIB_SUFFIX variable to determine the correct path.
Sam Lantinga %!s(int64=6) %!d(string=hai) anos
pai
achega
598bcfc5f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -2119,7 +2119,7 @@ install(TARGETS ${_INSTALL_LIBS} EXPORT SDL2Targets
 if (WINDOWS)
 if (WINDOWS)
   set(PKG_PREFIX "cmake")
   set(PKG_PREFIX "cmake")
 else ()
 else ()
-  set(PKG_PREFIX "lib/cmake/SDL2")
+  set(PKG_PREFIX "lib${LIB_SUFFIX}/cmake/SDL2")
 endif ()
 endif ()
 
 
 include(CMakePackageConfigHelpers)
 include(CMakePackageConfigHelpers)