diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-09-28 07:16:24 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-09-28 07:16:24 +0100 |
commit | a308c28f129f55283b45831ef39bcf114ef9e0bf (patch) | |
tree | c0539abf59bf154c435293191f72404a6eae5f52 | |
parent | e2c43205033026d70c12b592c84dfcc1e667cb4b (diff) |
Silence MinGW linkage warnings.
-rwxr-xr-x | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
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) |