mirror of https://github.com/CGAL/cgal
use detected python version
This commit is contained in:
parent
e4097e8fd9
commit
271cad9d3d
|
|
@ -26,13 +26,8 @@ else()
|
||||||
set(CGAL_ROOT "${CMAKE_SOURCE_DIR}")
|
set(CGAL_ROOT "${CMAKE_SOURCE_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Doxygen)
|
find_package(Doxygen REQUIRED)
|
||||||
find_package(Python3 COMPONENTS Interpreter)
|
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
||||||
|
|
||||||
if(NOT DOXYGEN_FOUND)
|
|
||||||
message(WARNING "Cannot build the documentation without Doxygen!")
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
#starting from cmake 3.9 the usage of DOXYGEN_EXECUTABLE is deprecated
|
#starting from cmake 3.9 the usage of DOXYGEN_EXECUTABLE is deprecated
|
||||||
if(TARGET Doxygen::doxygen)
|
if(TARGET Doxygen::doxygen)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
exec ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/pkglist_filter.py "$1"
|
exec ${Python3_EXECUTABLE} ${CMAKE_BINARY_DIR}/pkglist_filter.py "$1"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
:go
|
:go
|
||||||
${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/pkglist_filter.py %1
|
${Python3_EXECUTABLE} ${CMAKE_BINARY_DIR}/pkglist_filter.py %1
|
||||||
|
|
||||||
@echo on
|
@echo on
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue