Skip to content

Commit

Permalink
refactor(build): Update to recent CMake FindPython
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Dec 8, 2023
1 parent 1064864 commit eac9984
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(${CMAKE_VERSION} VERSION_LESS 3.12)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${PROJECT_SOURCE_DIR}/tools/cmake3.12")
endif()

find_package(Python3 REQUIRED)
find_package(Python3 COMPONENTS Interpreter REQUIRED)
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})

find_package(Git)
Expand Down
2 changes: 1 addition & 1 deletion tools/cmake/open62541Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set (open62541_TOOLS_DIR @PACKAGE_open62541_install_tools_dir@ CACHE PATH "Path
set (UA_NODESET_DIR @PACKAGE_open62541_install_nodeset_dir@ CACHE PATH "Path to the directory that contains the OPC UA schema repository")

include(CMakeFindDependencyMacro)
find_dependency(PythonInterp 3 REQUIRED)
find_dependency(Python3 COMPONENTS Interpreter REQUIRED)

include("${CMAKE_CURRENT_LIST_DIR}/open62541Macros.cmake")

Expand Down

0 comments on commit eac9984

Please sign in to comment.