From 75a3ad1d4907aad1b1a4254cb5ab5f80a9767f03 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 22 Apr 2015 20:25:19 -0400 Subject: [PATCH] CMake: Slightly better fix for installation target (thanks, Anthony!). Fixes Bugzilla #2474. --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index edd649c7c89ce..988a3488eb028 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1390,7 +1390,8 @@ endif() ##### Installation targets ##### install(TARGETS ${_INSTALL_LIBS} LIBRARY DESTINATION "lib${LIB_SUFFIX}" - ARCHIVE DESTINATION "lib${LIB_SUFFIX}") + ARCHIVE DESTINATION "lib${LIB_SUFFIX}" + RUNTIME DESTINATION bin) file(GLOB INCLUDE_FILES ${SDL2_SOURCE_DIR}/include/*.h) file(GLOB BIN_INCLUDE_FILES ${SDL2_BINARY_DIR}/include/*.h) @@ -1418,10 +1419,6 @@ if(NOT WINDOWS OR CYGWIN) install(PROGRAMS ${SDL2_BINARY_DIR}/sdl2-config DESTINATION bin) # TODO: what about the .spec file? Is it only needed for RPM creation? install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal") -else() - if(SDL_SHARED) - install(TARGETS SDL2 RUNTIME DESTINATION bin) - endif() endif() ##### Uninstall target #####