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

Tiago O.

Use LIB_SUFFIX variable to determine the correct path.
This commit is contained in:
Sam Lantinga 2020-01-06 07:06:58 -08:00
parent 2b1edf4113
commit 598bcfc5f6
1 changed files with 1 additions and 1 deletions

View File

@ -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)