Explorar o código

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

Sascha Zelzer %!s(int64=13) %!d(string=hai) anos
pai
achega
1bba6779d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}