Browse Source

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 5 năm trước cách đây
mục cha
commit
598bcfc5f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

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