Add output of Pivy version

This commit is contained in:
Chris Hennes
2021-03-04 23:31:04 -06:00
committed by wmayer
parent 4e40f21e5d
commit e1c056c837
4 changed files with 9 additions and 0 deletions

View File

@@ -45,6 +45,9 @@ constexpr char * FC_VTK_VERSION = "${VTK_VERSION}";
// Xerces-C
constexpr char * FC_XERCESC_VERSION = "${XercesC_VERSION}";
// Pivy
constexpr char * FC_PIVY_VERSION = "${PIVY_VERSION}";
#endif // LIBRARY_VERSIONS_H

View File

@@ -117,5 +117,9 @@ IF(COIN3D_LIBRARIES)
set(COIN3D_VERSION "${COIN3D_MAJOR_VERSION}.${COIN3D_MINOR_VERSION}.${COIN3D_MICRO_VERSION}")
ENDIF()
IF(NOT PIVY_VERSION)
execute_process (COMMAND ${Python3_EXECUTABLE} -c "import pivy as p; print(p.__version__,end='')" OUTPUT_VARIABLE PIVY_VERSION)
ENDIF()
ENDIF(COIN3D_LIBRARIES)

View File

@@ -155,6 +155,7 @@ macro(PrintFinalReport)
message(STATUS "OpenGLU: [${OPENGL_glu_LIBRARY}][${OPENGL_INCLUDE_DIR}]")
message(STATUS "Coin3D: ${COIN3D_VERSION} [${COIN3D_LIBRARIES}] [${COIN3D_INCLUDE_DIRS}]")
message(STATUS "Pivy: ${PIVY_VERSION}")
if (WIN32)

View File

@@ -128,6 +128,7 @@ macro(SetupPython)
"Python not found, install Python!\n"
"=================================\n")
endif()
set(Python3_EXECUTABLE ${PYTHON_EXECUTABLE})
else()
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)