Horde3D http://horde3d.org/forums/ |
|
[Patch] Compiling under MinGW using CMake http://horde3d.org/forums/viewtopic.php?f=3&t=465 |
Page 1 of 1 |
Author: | phoenix64 [ 17.08.2008, 17:30 ] |
Post subject: | [Patch] Compiling under MinGW using CMake |
These changes make Horde3D compile properly with MinGW on Windows (using the MinGW which comes with Code::Blocks): Code: Index: Extensions/Terrain/Sample/CMakeLists.txt =================================================================== --- Extensions/Terrain/Sample/CMakeLists.txt (revision 46) +++ Extensions/Terrain/Sample/CMakeLists.txt (working copy) @@ -1,9 +1,9 @@ include_directories(../Bindings/C++ ../../../Horde3D/Bindings/C++ ../../../Horde3D/Dependencies/Include) -IF(WIN32) +IF(MSVC) SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ") -ENDIF(WIN32) +ENDIF(MSVC) add_executable(Terrain WIN32 MACOSX_BUNDLE app.h Index: Horde3D/Samples/Chicago/CMakeLists.txt =================================================================== --- Horde3D/Samples/Chicago/CMakeLists.txt (revision 46) +++ Horde3D/Samples/Chicago/CMakeLists.txt (working copy) @@ -2,9 +2,9 @@ include_directories(../../Bindings/C++) include_directories(../../Dependencies/Include) -IF(WIN32) +IF(MSVC) SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ") -ENDIF(WIN32) +ENDIF(MSVC) add_executable(Chicago WIN32 MACOSX_BUNDLE app.h Index: Horde3D/Samples/Knight/CMakeLists.txt =================================================================== --- Horde3D/Samples/Knight/CMakeLists.txt (revision 46) +++ Horde3D/Samples/Knight/CMakeLists.txt (working copy) @@ -2,9 +2,9 @@ include_directories(../../Bindings/C++) include_directories(../../Dependencies/Include) -IF(WIN32) +IF(MSVC) SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ") -ENDIF(WIN32) +ENDIF(MSVC) add_executable(Knight WIN32 MACOSX_BUNDLE app.h Index: Horde3D/Source/Horde3DEngine/egCom.h =================================================================== --- Horde3D/Source/Horde3DEngine/egCom.h (revision 46) +++ Horde3D/Source/Horde3DEngine/egCom.h (working copy) @@ -27,6 +27,7 @@ #include "egPrerequisites.h" #include <time.h> +#include <stdarg.h> #include <cstdlib> #include <cstring> #include <string> I don't know whether the cmake changes might break other compilers, but it should work that way with both MinGW and MSVC. |
Author: | swiftcoder [ 18.08.2008, 13:57 ] |
Post subject: | Re: Compiling under MinGW using CMake |
phoenix64 wrote: I don't know whether the cmake changes might break other compilers, but it should work that way with both MinGW and MSVC. That shouldn't break other compilers, and MSVC and MinGW are the most common, so we can always patch if another comes along that this breaks.
|
Author: | Volker [ 31.08.2008, 23:05 ] |
Post subject: | Re: Compiling under MinGW using CMake |
I just commited it to the SVN,... thanks for testing it with MinGW,... doesn't have this configuration on one of my machines. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |