From 8b16748b114b77bf00ca36b3088d5eb3bf7fa87f Mon Sep 17 00:00:00 2001 From: Ander Biguri Date: Mon, 18 Jan 2021 10:15:57 +0100 Subject: [PATCH] Fix bug in checking python libraries var related #473 --- SuperBuild.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SuperBuild.cmake b/SuperBuild.cmake index 9b59d612..0a62b6f9 100644 --- a/SuperBuild.cmake +++ b/SuperBuild.cmake @@ -139,11 +139,11 @@ else() # set PYTHONLIBS_CMAKE_ARGS to be used in the ExternalProject_add calls # note: Find_package(PythonLibs) takes PYTHON_INCLUDE_DIR and PYTHON_LIBRARY as input set (PYTHONLIBS_CMAKE_ARGS -DPYTHON_EXECUTABLE:FILEPATH=${PYTHON_EXECUTABLE}) - if (EXISTS ${PYTHON_INCLUDE_DIR}) + if (EXISTS "${PYTHON_INCLUDE_DIR}") set (PYTHONLIBS_CMAKE_ARGS ${PYTHONLIBS_CMAKE_ARGS} -DPYTHON_INCLUDE_DIR:PATH=${PYTHON_INCLUDE_DIR}) endif() - if (EXISTS ${PYTHON_LIBRARY}) + if (EXISTS "${PYTHON_LIBRARY}") set (PYTHONLIBS_CMAKE_ARGS ${PYTHONLIBS_CMAKE_ARGS} -DPYTHON_LIBRARY:FILEPATH=${PYTHON_LIBRARY}) endif()