From Wang Rui, "A very small clerical error in the src/osgViewer/CMakeLists.txt makes MinGW/Cygwin builds fail. Now it is fixed and now OSG works well again with Cygwin. :-) The OSC plugin also needs a small fix to compile with Cygwin, as attached file src/osgPlugins/osc/osc/OscHostEndianness.h shows."

This commit is contained in:
Robert Osfield 2013-07-19 06:39:06 +00:00
parent 0175c820af
commit a270a7635e
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
#else #else
#if defined(__GLIBC__) || defined(__ANDROID__) #if defined(__GLIBC__) || defined(__ANDROID__) || defined(__CYGWIN__)
#include <endian.h> #include <endian.h>
#if (__BYTE_ORDER == __LITTLE_ENDIAN) #if (__BYTE_ORDER == __LITTLE_ENDIAN)
#define __LITTLE_ENDIAN__ #define __LITTLE_ENDIAN__

View File

@ -259,7 +259,7 @@ SET(TARGET_LIBRARIES
SET(TARGET_EXTERNAL_LIBRARIES ${LIB_EXTRA_LIBS}) SET(TARGET_EXTERNAL_LIBRARIES ${LIB_EXTRA_LIBS})
IF(MINGW OR CYGWIN) IF(MINGW OR CYGWIN)
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARY} gdi32 ) SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} gdi32 )
ENDIF() ENDIF()
SETUP_LIBRARY(${LIB_NAME}) SETUP_LIBRARY(${LIB_NAME})