We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2691

Summary: Disabling shared library prevent cmake configuration
Product: SDL Reporter: hotgloupi <raphael.londeix>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 CC: raphael.londeix
Version: HG 2.1   
Hardware: x86   
OS: Windows 7   

Description hotgloupi 2014-08-18 17:21:53 UTC
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:

+ if(SDL_SHARED)
   install(TARGETS SDL2 RUNTIME DESTINATION bin)
+ endif()
Comment 1 Sam Lantinga 2014-08-20 04:13:38 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/61d1cd95698e