Commit 244bad9f authored by Chris Cantwell's avatar Chris Cantwell

Added initialisation logic for Python3 status flag.

parent 823a9a84
......@@ -10,6 +10,12 @@ IF (NEKTAR_BUILD_PYTHON)
CMAKE_DEPENDENT_OPTION(NEKTAR_USE_PYTHON3
"If true, prefer to use Python 3." OFF "NEKTAR_BUILD_PYTHON" OFF)
# Set the Python3 status flag as the opposite of the Python3 flag by
# default on first run to ensure Python is searched for.
IF (NOT DEFINED NEKTAR_PYTHON3_STATUS)
SET(NEKTAR_PYTHON3_STATUS NOT ${NEKTAR_USE_PYTHON3} CACHE INTERNAL "")
ENDIF()
IF (NOT NEKTAR_PYTHON3_STATUS STREQUAL NEKTAR_USE_PYTHON3)
# Unset any existing python executable/library settings so that we can
# rediscover correct python version if v2/3 settings changed.
......
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