Browse Source

Ensure lib-prefix in static MinGW build. Closes #223.

Lasse Öörni 11 years ago
parent
commit
68a3e33980
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Engine/CMakeLists.txt

+ 1 - 1
Source/Engine/CMakeLists.txt

@@ -120,7 +120,7 @@ if (APPLE)
     set (FORCE_LOAD -force_load)
 elseif (NOT MSVC)
     set_property (TARGET ${TARGET_NAME} APPEND PROPERTY LINK_LIBRARIES -Wl,--whole-archive)
-    if (WIN32)
+    if (WIN32 AND URHO3D_LIB_TYPE STREQUAL SHARED)
         set_target_properties (${TARGET_NAME} PROPERTIES PREFIX "")
     endif ()
 endif ()