File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 ()
7274endif (PYTHON_WRAPPERS)
7375IF (USE_CUDA)
You can’t perform that action at this time.
0 commit comments