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 - Disabling shared library prevent cmake configuration
Summary: Disabling shared library prevent cmake configuration
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: x86 Windows 7
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-18 17:21 UTC by hotgloupi
Modified: 2014-08-20 04:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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