Skip to content

Commit

Permalink
fix incorrect placement of find_package(Python3) for code_gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffamstutz committed Feb 7, 2025
1 parent ae1a17d commit 7f79a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code_gen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if(CMAKE_VERSION VERSION_LESS "3.12")
return()
endif()

find_package(Python3 QUIET COMPONENTS Interpreter Development.Module)
if (NOT TARGET Python3::Interpreter)
message(WARNING "Unable to find python interpreter, skipping code-gen + API bindings")
return()
Expand Down Expand Up @@ -69,7 +70,6 @@ add_custom_target(generate_headers DEPENDS

add_dependencies(generate_all generate_headers)

find_package(Python3 QUIET COMPONENTS Interpreter Development.Module)
if (NOT TARGET Python3::Module)
message(WARNING "Unable to find python Module, skipping python bindings")
return()
Expand Down

0 comments on commit 7f79a9e

Please sign in to comment.