浏览代码

Set the Qt plugin install path if it is not properly overridden. Fixes #228

Sascha Zelzer 13 年之前
父节点
当前提交
1bba6779d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CMake/ctkMacroBuildQtPlugin.cmake

+ 1 - 1
CMake/ctkMacroBuildQtPlugin.cmake

@@ -127,7 +127,7 @@ macro(ctkMacroBuildQtPlugin)
   # CTK_INSTALL_QTPLUGIN_DIR:STRING can be passed when configuring CTK
   # By default, it is the same path as CTK_INSTALL_LIB_DIR
   # Plugins are installed in a subdirectory corresponding to their types (e.g. designer, iconengines, imageformats...)
-  if (NOT DEFINED CTK_INSTALL_QTPLUGIN_DIR)
+  if (NOT CTK_INSTALL_QTPLUGIN_DIR)
     set(CTK_INSTALL_QTPLUGIN_DIR "${CTK_INSTALL_LIB_DIR}")
   endif()
   install(TARGETS ${lib_name}