Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Only link sfml-main for the GUI examples in release mode. #766
Jan 7, 2015
This won't work for multi-configuration CMake generators (Visual Studio, XCode, KDevelop, ...), where
There doesn't seem to be a general solution to this problem though. For example, this solution is rather ugly and for Visual Studio only.
That, or we apply this PR anyway:
If we apply the PR as it is, we should at least add a comment such as "won't be applied in multi-configuration generators such as Visual Studio, but we don't care".
Since it's using
Just noticed that I saw things wrong, because besides
The current issue I have with Visual Studio though is, that the win32 example uses
@binary1248 The line above the linking would also need to be applied only for the optimized target (i.e.
I've updated the PR and it now only removes the console window if there are no multiple configuration types and it's built in release mode.
Additionally the win32 example has been updated.