Added debug postfix to install command and fixed library path

This commit is contained in:
Saad Khattak 2018-04-10 08:03:54 -07:00
parent 6a0ef0cdbc
commit 6b5ed0fd49
1 changed files with 6 additions and 6 deletions

View File

@ -1818,7 +1818,7 @@ if(NOT (WINDOWS OR CYGWIN))
if(NOT ANDROID) if(NOT ANDROID)
install(CODE " install(CODE "
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
\"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")") \"${SDL2_BINARY_DIR}/libSDL2-2.0${SDL_CMAKE_DEBUG_POSTFIX}.${SOEXT}\" \"${SDL2_BINARY_DIR}/libSDL2.${SOEXT}\")")
install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}") install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
endif() endif()
endif() endif()