From d22d28dc487a18b2e4e71870b38584cf02315d69 Mon Sep 17 00:00:00 2001 From: Philip Date: Sun, 18 Jun 2017 21:46:36 +0200 Subject: [PATCH] [CMakeModules] fix if loops --- CMakeModules/FindPythonQt.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeModules/FindPythonQt.cmake b/CMakeModules/FindPythonQt.cmake index e98124f01..52f36db82 100644 --- a/CMakeModules/FindPythonQt.cmake +++ b/CMakeModules/FindPythonQt.cmake @@ -93,7 +93,7 @@ elseif(PYTHONQT_LIBRARY_V32 AND PYTHONQT_QTALL_LIBRARY_V32) set(PYTHONQT_LIB_V32) endif() -if(PYTHONQT_INCLUDE_DIR AND (PYTHONQT_LIB OR PYTHONQT_LIB_V32)) +if((PYTHONQT_INCLUDE_DIR AND PYTHONQT_LIB) OR (PYTHONQT_INCLUDE_DIR AND PYTHONQT_LIB_V32)) # Currently CMake'ified PythonQt only supports building against a python Release build. # This applies independently of CTK build type (Release, Debug, ...) add_definitions(-DPYTHONQT_USE_RELEASE_PYTHON_FALLBACK)