From: José Fonseca Date: Wed, 28 Sep 2011 06:16:24 +0000 (+0100) Subject: Silence MinGW linkage warnings. X-Git-Tag: 2.0_alpha^2~623 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a308c28f129f55283b45831ef39bcf114ef9e0bf;p=tools%2Fapitrace.git Silence MinGW linkage warnings. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d7deb4f..4c1e2c5 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,6 +234,11 @@ install (TARGETS tracedump RUNTIME DESTINATION bin) # API tracers if (WIN32) + if (MINGW) + # Silence warnings about @nn suffix mismatch + set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--enable-stdcall-fixup") + endif (MINGW) + # ddraw.dll if (DirectX_D3D_INCLUDE_DIR) include_directories (SYSTEM ${DirectX_D3D_INCLUDE_DIR}) @@ -319,9 +324,6 @@ if (WIN32) RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/wrappers LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/wrappers ) - if (MINGW) - set_target_properties(wgltrace PROPERTIES LINK_FLAGS "-Wl,--enable-stdcall-fixup") - endif (MINGW) install (TARGETS wgltrace LIBRARY DESTINATION wrappers) elseif (APPLE)