--- CMakeLists.txt.orig 2023-04-25 18:21:08 UTC +++ CMakeLists.txt @@ -141,14 +141,14 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BIN # Python if (SURELOG_WITH_PYTHON) - find_package(Python3 REQUIRED COMPONENTS Interpreter Development) + find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} EXACT REQUIRED COMPONENTS Interpreter Development) find_package(SWIG REQUIRED) message(STATUS "Python3_LIBRARIES = ${Python3_LIBRARIES}") message(STATUS "Python3_EXECUTABLE = ${Python3_EXECUTABLE}") message(STATUS "Python3_INCLUDE_DIRS = ${Python3_INCLUDE_DIRS}") message(STATUS "Python3_RUNTIME_LIBRARY_DIRS = ${Python3_RUNTIME_LIBRARY_DIRS}") else() - find_package(Python3 3.3 REQUIRED Interpreter) + find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} EXACT REQUIRED Interpreter) message(STATUS "Python3_EXECUTABLE = ${Python3_EXECUTABLE}") endif() @@ -231,7 +231,7 @@ add_custom_command( ${PROJECT_SOURCE_DIR}/src/Cache/preproc.fbs) # Java -find_package(Java 11 REQUIRED COMPONENTS Runtime) +find_package(Java ${FREEBSD_JAVA_VERSION} REQUIRED COMPONENTS Runtime) message(STATUS "Java_JAVA_EXECUTABLE = ${Java_JAVA_EXECUTABLE}") add_custom_target(GenerateParser DEPENDS