Changeset 14647


Ignore:
Timestamp:
Dec 31, 2015, 12:41:17 PM (6 years ago)
Author:
mikedld
Message:

Fix MinGW build (still produces lots of useless warnings though)

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r14645 r14647  
    142142            # Reduce noise (at least for now)
    143143            set(CMAKE_${L}_FLAGS "${CMAKE_${L}_FLAGS} /wd4244 /wd4267")
     144        endif()
     145
     146        if(MINGW)
     147            set(CMAKE_${L}_FLAGS "${CMAKE_${L}_FLAGS} -D__USE_MINGW_ANSI_STDIO=1")
    144148        endif()
    145149    endforeach()
     
    311315    tr_add_external_auto_library(EVENT2 event
    312316        PATCH_COMMAND "${CMAKE_COMMAND}" -E copy "${THIRD_PARTY_DIR}/event2.cmake" "<SOURCE_DIR>/CMakeLists.txt"
    313               COMMAND "${CMAKE_COMMAND}" -E chdir "<SOURCE_DIR>" patch -p1 -i "${THIRD_PARTY_DIR}/event2-01-win32.patch")
     317              COMMAND "${CMAKE_COMMAND}" -E chdir "<SOURCE_DIR>" patch -p1 -i "${THIRD_PARTY_DIR}/event2-01-win32.patch"
     318              COMMAND "${CMAKE_COMMAND}" -E chdir "<SOURCE_DIR>" patch -p1 -i "${THIRD_PARTY_DIR}/event2-02-win32.patch")
    314319else()
    315320    tr_add_external_auto_library(EVENT2 event
Note: See TracChangeset for help on using the changeset viewer.