Skip to content

Commit 44875dd

Browse files
committed
Mark advanced variables properly
1 parent dc0b7d9 commit 44875dd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,18 @@ if(PYTHON_WRAPPERS)
5858
find_package (Python3 COMPONENTS Interpreter Development NumPy)
5959
if(Python3_Interpreter_FOUND)
6060
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE} CACHE PATH "Python interpreter executable")
61-
set(PYTHON_INCLUDE_PATH ${Python3_INCLUDE_DIRS} CACHE PATH "Python include dirs" ADVANCED)
62-
set(PYTHON_LIBRARIES ${Python3_LIBRARIES} CACHE PATH "Python libraries" ADVANCED)
63-
set(PYTHON_NUMPY_INCLUDE_DIR ${Python3_NumPy_INCLUDE_DIRS} CACHE PATH "Python NumPy include dirs" ADVANCED)
61+
set(PYTHON_INCLUDE_PATH ${Python3_INCLUDE_DIRS} CACHE PATH "Python include dirs")
62+
set(PYTHON_LIBRARIES ${Python3_LIBRARIES} CACHE PATH "Python libraries")
63+
set(PYTHON_NUMPY_INCLUDE_DIR ${Python3_NumPy_INCLUDE_DIRS} CACHE PATH "Python NumPy include dirs")
6464
set(PYTHON_NUMPY_FOUND ${Python3_NumPy_FOUND})
65+
mark_as_advanced(PYTHON_INCLUDE_PATH PYTHON_LIBRARIES PYTHON_NUMPY_INCLUDE_DIR)
6566
else()
6667
message(FATAL_ERROR "Python interpreter not found")
6768
endif()
6869
find_package(SWIG)
6970
if(PYTHON_LIBRARIES AND SWIG_FOUND AND PYTHON_EXECUTABLE AND PYTHON_NUMPY_FOUND)
70-
SET(PYTHON_INSTDIR ${Python3_SITELIB} CACHE PATH "Installation directory for python module." ADVANCED)
71+
SET(PYTHON_INSTDIR ${Python3_SITELIB} CACHE PATH "Installation directory for python module.")
72+
mark_as_advanced(PYTHON_INSTDIR)
7173
endif()
7274
endif(PYTHON_WRAPPERS)
7375
IF(USE_CUDA)

0 commit comments

Comments
 (0)