mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	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.
This commit is contained in:
		
							
								
								
									
										11
									
								
								src/main.cpp
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.cpp
									
									
									
									
									
								
							@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user