Commit bb4d64ff authored by jcfr's avatar jcfr

COMP: Fix last python26_d link errors ensuring...

COMP: Fix last python26_d link errors ensuring PYTHONQT_USE_RELEASE_PYTHON_FALLBACK is defined in Slicer

See http://massmail.spl.harvard.edu/public-archives/slicer-devel/2012/009521.html
and https://github.com/commontk/CTK/issues/203

git-svn-id: http://svn.slicer.org/Slicer4/trunk@20648 3bd1e089-480b-0410-8dfb-8563597acbee
parent d3316714
......@@ -149,6 +149,13 @@ endif()
# Set '<PROJECTNAME>_DIR' variable(s) so that find_package(<PROJECTNAME>) works as expected.
set(PYTHONQT_INSTALL_DIR ${CTK_PYTHONQT_INSTALL_DIR})
# Find PythonQt package so that PYTHONQT_USE_RELEASE_PYTHON_FALLBACK is defined
# See https://github.com/commontk/PythonQt/issues/7
# and https://github.com/commontk/PythonQt/issues/8
if(Slicer_USE_PYTHONQT)
find_package(PythonQt)
endif()
# --------------------------------------------------------------------------
# ExternalData
# --------------------------------------------------------------------------
......
......@@ -634,6 +634,10 @@ if(Slicer_USE_PYTHONQT)
include(vtkMacroKitPythonWrap)
set(PYTHONQT_INSTALL_DIR ${CTK_PYTHONQT_INSTALL_DIR})
# Find PythonQt package so that PYTHONQT_USE_RELEASE_PYTHON_FALLBACK is defined
# See https://github.com/commontk/PythonQt/issues/7
# and https://github.com/commontk/PythonQt/issues/8
find_package(PythonQt REQUIRED)
link_directories(${PYTHONQT_INSTALL_DIR}/lib)
include(ctkMacroWrapPythonQt)
include(ctkMacroCompilePythonScript)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment