Skip to content

Commit

Permalink
cmake/findDependencies.cmake: avoid unnecessary message about matchco…
Browse files Browse the repository at this point in the history
…mpiler when it isn't enabled
  • Loading branch information
firewave committed Sep 16, 2024
1 parent f0ae0d7 commit 4f9732f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/findDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)

if(CMAKE_VERSION VERSION_EQUAL "3.12" OR CMAKE_VERSION VERSION_GREATER "3.12")
find_package(Python COMPONENTS Interpreter)
if(NOT Python_Interpreter_FOUND)
if(NOT Python_Interpreter_FOUND AND NOT USE_MATCHCOMPILER_OPT STREQUAL "Off")
message(WARNING "No python interpreter found - disabling matchcompiler.")
set(USE_MATCHCOMPILER_OPT "Off")
endif()
Expand Down

0 comments on commit 4f9732f

Please sign in to comment.