Commits

Anonymous committed 886eaa5

- add ms-bit-fields option for mingw and msys

  • Participants
  • Parent commits ed78df4
  • Branches GD-2.0

Comments (0)

Files changed (1)

File src/CMakeLists.txt

 add_library(${GD_LIB_STATIC} STATIC  ${LIBGD_SRC_FILES})
 
 if (WIN32 AND NOT MINGW AND NOT MSYS)
-	SET_TARGET_PROPERTIES(${GD_LIB} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:msvcrt.lib")
+#	SET_TARGET_PROPERTIES(${GD_LIB} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:msvcrt.lib")
 ENDIF(WIN32 AND NOT MINGW AND NOT MSYS)
 
+if (MINGW OR MSYS)
+	ADD_DEFINITIONS("-mms-bitfields")
+endif (MINGW OR MSYS)
+
 INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/  ${GD_SOURCE_DIR}/src)
 
 target_link_libraries(${GD_LIB} ${FREETYPE_LIBRARIES} ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES} ${XPM_LIBRARIES} ${FONTCONFIG_LIBRARIES})