Skip to content

Commit 9607613

Browse files
committed
CMake: Slightly better fix for installation target (thanks, Anthony!).
Fixes Bugzilla #2474. --HG-- extra : rebase_source : cb0c8062e17b7d6d0bb4761e4ad3512a34b0a806
1 parent 8b6cdd0 commit 9607613

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,8 @@ endif()
13901390
##### Installation targets #####
13911391
install(TARGETS ${_INSTALL_LIBS}
13921392
LIBRARY DESTINATION "lib${LIB_SUFFIX}"
1393-
ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
1393+
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
1394+
RUNTIME DESTINATION bin)
13941395

13951396
file(GLOB INCLUDE_FILES ${SDL2_SOURCE_DIR}/include/*.h)
13961397
file(GLOB BIN_INCLUDE_FILES ${SDL2_BINARY_DIR}/include/*.h)
@@ -1418,10 +1419,6 @@ if(NOT WINDOWS OR CYGWIN)
14181419
install(PROGRAMS ${SDL2_BINARY_DIR}/sdl2-config DESTINATION bin)
14191420
# TODO: what about the .spec file? Is it only needed for RPM creation?
14201421
install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal")
1421-
else()
1422-
if(SDL_SHARED)
1423-
install(TARGETS SDL2 RUNTIME DESTINATION bin)
1424-
endif()
14251422
endif()
14261423

14271424
##### Uninstall target #####

0 commit comments

Comments
 (0)