CMake: Slightly better fix for installation target (thanks, Anthony!).
authorRyan C. Gordon <icculus@icculus.org>
Wed, 22 Apr 2015 20:25:19 -0400
changeset 95715e3a1adadfbb
parent 9570 8681778c5ede
child 9572 6fe1936ac50b
CMake: Slightly better fix for installation target (thanks, Anthony!).

Fixes Bugzilla #2474.
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Wed Apr 22 21:43:22 2015 +0200
     1.2 +++ b/CMakeLists.txt	Wed Apr 22 20:25:19 2015 -0400
     1.3 @@ -1390,7 +1390,8 @@
     1.4  ##### Installation targets #####
     1.5  install(TARGETS ${_INSTALL_LIBS}
     1.6    LIBRARY DESTINATION "lib${LIB_SUFFIX}"
     1.7 -  ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
     1.8 +  ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
     1.9 +  RUNTIME DESTINATION bin)
    1.10  
    1.11  file(GLOB INCLUDE_FILES ${SDL2_SOURCE_DIR}/include/*.h)
    1.12  file(GLOB BIN_INCLUDE_FILES ${SDL2_BINARY_DIR}/include/*.h)
    1.13 @@ -1418,10 +1419,6 @@
    1.14    install(PROGRAMS ${SDL2_BINARY_DIR}/sdl2-config DESTINATION bin)
    1.15    # TODO: what about the .spec file? Is it only needed for RPM creation?
    1.16    install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal")
    1.17 -else()
    1.18 -  if(SDL_SHARED)
    1.19 -    install(TARGETS SDL2 RUNTIME DESTINATION bin)
    1.20 -  endif()
    1.21  endif()
    1.22  
    1.23  ##### Uninstall target #####