mirror of https://github.com/encounter/SDL.git
Fixed bug 2691 - Disabling shared library prevent cmake configuration
hotgloupi Configuring using "cmake -DSDL_STATIC=1 -DSDL_SHARED=0" generate and error in CMakeLists.txt at line 1334: CMake Error at CMakeLists.txt:1334 (install): install TARGETS given target "SDL2" which does not exist in this directory. This install rule shouldn't be present when the DLL has been disabled
This commit is contained in:
parent
5a752c3aa7
commit
04f7422552
|
@ -1331,8 +1331,10 @@ if(NOT WINDOWS OR CYGWIN)
|
||||||
# TODO: what about the .spec file? Is it only needed for RPM creation?
|
# TODO: what about the .spec file? Is it only needed for RPM creation?
|
||||||
install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal")
|
install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal")
|
||||||
else()
|
else()
|
||||||
|
if(SDL_SHARED)
|
||||||
install(TARGETS SDL2 RUNTIME DESTINATION bin)
|
install(TARGETS SDL2 RUNTIME DESTINATION bin)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
##### Uninstall target #####
|
##### Uninstall target #####
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue