浏览代码

only add -DQT_DLL on Windows, ok by Clinton

Alex
Alexander Neundorf 16 年之前
父节点
当前提交
12daac5714
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Modules/Qt4ConfigDependentSettings.cmake

+ 2 - 2
Modules/Qt4ConfigDependentSettings.cmake

@@ -36,11 +36,11 @@ SET(QT_QTHELP_LIB_DEPENDENCIES ${QT_QTCLUCENE_LIBRARY})
 
 
 # build using shared Qt needs -DQT_DLL
-IF(NOT QT_CONFIG MATCHES "static")
+IF(WIN32  AND  NOT QT_CONFIG MATCHES "static")
   # warning currently only qconfig.pri on Windows potentially contains "static"
   # so QT_DLL might not get defined properly on other platforms.
   SET(QT_DEFINITIONS ${QT_DEFINITIONS} -DQT_DLL)
-ENDIF(NOT QT_CONFIG MATCHES "static")
+ENDIF(WIN32  AND  NOT QT_CONFIG MATCHES "static")
 
 
 # QtOpenGL dependencies