Commit 4f8bee17 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG: Fixing QT_TESTING_WITH_PYTHON flag. Again, making it a non-cache...

BUG: Fixing QT_TESTING_WITH_PYTHON flag. Again, making it a non-cache variable, adding a new variable PARAVIEW_TESTING_WITH_PYTHON. When PARAVIEW_TESTING_WITH_PYTHON. and PARAVIEW_ENABLE_PYTHON are ON, then alone QT_TESTING_WITH_PYTHON is set to ON.
parent ac5bca6c
...@@ -3,7 +3,7 @@ PROJECT(QtTesting) ...@@ -3,7 +3,7 @@ PROJECT(QtTesting)
SET(QT_TESTING_WITH_XML ON) SET(QT_TESTING_WITH_XML ON)
IF(PARAVIEW_ENABLE_PYTHON AND QT_TESTING_WITH_PYTHON) IF(QT_TESTING_WITH_PYTHON)
INCLUDE(${CMAKE_ROOT}/Modules/FindPythonLibs.cmake) INCLUDE(${CMAKE_ROOT}/Modules/FindPythonLibs.cmake)
...@@ -33,7 +33,7 @@ IF(PARAVIEW_ENABLE_PYTHON AND QT_TESTING_WITH_PYTHON) ...@@ -33,7 +33,7 @@ IF(PARAVIEW_ENABLE_PYTHON AND QT_TESTING_WITH_PYTHON)
pqPythonEventSource.cxx pqPythonEventSource.cxx
pqPythonEventSource.h pqPythonEventSource.h
) )
ENDIF(PARAVIEW_ENABLE_PYTHON AND QT_TESTING_WITH_PYTHON) ENDIF(QT_TESTING_WITH_PYTHON)
IF(QT_TESTING_WITH_XML) IF(QT_TESTING_WITH_XML)
SET(XML_MOCS SET(XML_MOCS
...@@ -166,12 +166,12 @@ TARGET_LINK_LIBRARIES(QtTesting ...@@ -166,12 +166,12 @@ TARGET_LINK_LIBRARIES(QtTesting
${QT_LIBRARIES} ${QT_LIBRARIES}
) )
IF(PARAVIEW_ENABLE_PYTHON AND QT_TESTING_WITH_PYTHON) IF(QT_TESTING_WITH_PYTHON)
TARGET_LINK_LIBRARIES(QtTesting TARGET_LINK_LIBRARIES(QtTesting
${PYTHON_LIBRARIES} ${PYTHON_LIBRARIES}
${PYTHON_UTIL_LIBRARY_LIB} ${PYTHON_UTIL_LIBRARY_LIB}
) )
ENDIF(PARAVIEW_ENABLE_PYTHON AND QT_TESTING_WITH_PYTHON) ENDIF(QT_TESTING_WITH_PYTHON)
CONFIGURE_FILE(${QtTesting_SOURCE_DIR}/QtTestingConfigure.h.in CONFIGURE_FILE(${QtTesting_SOURCE_DIR}/QtTestingConfigure.h.in
${QtTesting_BINARY_DIR}/QtTestingConfigure.h) ${QtTesting_BINARY_DIR}/QtTestingConfigure.h)
......
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