Browse Source

Merge branch '228-fix-qtplugin-install-path'

* 228-fix-qtplugin-install-path:
  Set the Qt plugin install path if it is not properly overridden. Fixes #228
Sascha Zelzer 13 years ago
parent
commit
aed2c6d6c9
1 changed files with 1 additions and 1 deletions
  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}