Windows: dont link to libraries that are already linked by cmake
authoradrido <addi@king-arthur.eu>
Mon, 24 Oct 2016 04:49:35 +0000 (06:49 +0200)
committerNer'zhul <nerzhul@users.noreply.github.com>
Tue, 25 Oct 2016 11:54:24 +0000 (13:54 +0200)
This solves the problem whith building where build fails if the libaries have different names.

src/main.cpp

index f63b6a986e5de3c1f3b11e9634d9dbc4949884f0..a544546534ca68f115d5d30f57c9b82be21e3c5a 100644 (file)
@@ -17,15 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifdef _MSC_VER
-       #ifndef SERVER // Dedicated server isn't linked with Irrlicht
-               #pragma comment(lib, "Irrlicht.lib")
-               // This would get rid of the console window
-               //#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
-       #endif
-       #pragma comment(lib, "zlibwapi.lib")
-       #pragma comment(lib, "Shell32.lib")
-#endif
+// This would get rid of the console window
+//#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
 
 #include "irrlicht.h" // createDevice