Skip to content

Commit

Permalink
Fix bug in checking python libraries var
Browse files Browse the repository at this point in the history
related SyneRBI#473
  • Loading branch information
AnderBiguri committed Jan 18, 2021
1 parent cfecb01 commit 8b16748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8b16748

Please sign in to comment.