Skip to content

Commit

Permalink
Merge branch '478-use-cmake-prefix-path-instead-of-qt5-install-prefix'
Browse files Browse the repository at this point in the history
* 478-use-cmake-prefix-path-instead-of-qt5-install-prefix:
  Removed custom QT5_INSTALL_PREFIX variable.
  • Loading branch information
saschazelzer committed Nov 5, 2014
2 parents 396c4c4 + 40b8495 commit 6093013
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions CMake/ctkMacroSetupQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ macro(ctkMacroSetupQt)

if(CTK_QT_VERSION VERSION_GREATER "4")
cmake_minimum_required(VERSION 2.8.12)
set(QT5_INSTALL_PREFIX "" CACHE PATH "The install location of Qt5")
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QT5_INSTALL_PREFIX})
set(CTK_QT5_COMPONENTS Core Xml XmlPatterns Concurrent Sql Test)
if(CTK_LIB_Widgets OR CTK_LIB_CommandLineModules/Frontend/QtGui OR CTK_BUILD_ALL OR CTK_BUILD_ALL_LIBRARIES)
list(APPEND CTK_QT5_COMPONENTS Widgets OpenGL UiTools)
Expand Down Expand Up @@ -81,6 +79,5 @@ macro(ctkMacroSetupQt)

mark_as_superbuild(CTK_QT_VERSION)
mark_as_superbuild(QT_QMAKE_EXECUTABLE) # Qt 4
mark_as_superbuild(QT5_INSTALL_PREFIX) # Qt 5

endmacro()
1 change: 0 additions & 1 deletion CMakeExternals/PythonQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ if(NOT DEFINED PYTHONQT_INSTALL_DIR)
if (CTK_QT_VERSION VERSION_GREATER "4")
list(APPEND ep_PythonQt_args
-DPythonQt_QT_VERSION:STRING=${CTK_QT_VERSION}
-DCMAKE_PREFIX_PATH:STRING=${CMAKE_PREFIX_PATH}
)
set(qtlibs Core Gui Widgets Network OpenGL PrintSupport Sql Svg UiTools WebKit WebKitWidgets Xml)
else()
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ if(NOT CMAKE_CONFIGURATION_TYPES)
mark_as_superbuild(VARS CMAKE_BUILD_TYPE ALL_PROJECTS)
endif()

mark_as_superbuild(CMAKE_PREFIX_PATH)

#-----------------------------------------------------------------------------
# Superbuild Option - Enabled by default
#
Expand Down

0 comments on commit 6093013

Please sign in to comment.