Skip to content

Commit a1e1323

Browse files
adridonerzhul
authored andcommittedOct 25, 2016
Windows: dont link to libraries that are already linked by cmake
This solves the problem whith building where build fails if the libaries have different names.
1 parent 9817648 commit a1e1323

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed
 

Diff for: ‎src/main.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1717
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1818
*/
1919

20-
#ifdef _MSC_VER
21-
#ifndef SERVER // Dedicated server isn't linked with Irrlicht
22-
#pragma comment(lib, "Irrlicht.lib")
23-
// This would get rid of the console window
24-
//#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
25-
#endif
26-
#pragma comment(lib, "zlibwapi.lib")
27-
#pragma comment(lib, "Shell32.lib")
28-
#endif
20+
// This would get rid of the console window
21+
//#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
2922

3023
#include "irrlicht.h" // createDevice
3124

0 commit comments

Comments
 (0)
Please sign in to comment.