Skip to content
Snippets Groups Projects
Commit fb69a108 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Remove cmake message when USE_PYTHON3 was already on

parent a40c57a6
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ include(VERSION.cmake)
# --- Declare project-wide user flags, and set default values ---
option(BORNAGAIN_PYTHON "Build with python support" ON)
option(BORNAGAIN_USE_PYTHON3 "Build against python 3.5 instead of 2.7" OFF)
option(BORNAGAIN_USE_PYTHON3 "Build against python 3.x instead of 2.7" ON)
option(BORNAGAIN_GENERATE_BINDINGS "Generate python bindings during build (requires swig)" OFF)
option(BORNAGAIN_GENERATE_PYTHON_DOCS "Generate python documentation from the doxygen comments" OFF)
option(BORNAGAIN_GUI "Build a graphical user interface" ON)
......
......@@ -60,7 +60,7 @@ if(BORNAGAIN_PYTHON OR BORNAGAIN_GUI)
endif()
message(STATUS "Found Python libraries version ${PYTHONLIBS_VERSION_STRING} at ${PYTHON_LIBRARIES}; includes at ${PYTHON_INCLUDE_DIRS}")
if(PYTHONLIBS_VERSION_STRING MATCHES "^3.*$")
if(PYTHONLIBS_VERSION_STRING MATCHES "^3.*$" AND NOT BORNAGAIN_USE_PYTHON3)
set(BORNAGAIN_USE_PYTHON3 ON)
message(STATUS "Python 3 will be used. Setting BORNAGAIN_USE_PYTHON3 to ${BORNAGAIN_USE_PYTHON3}.")
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment