Skip to content

Commit

Permalink
Merge pull request #872 from kbenzie/benie/macos-respect-python-virtu…
Browse files Browse the repository at this point in the history
…alenv

[cmake] Respect Python virtualenv on macOS
  • Loading branch information
kbenzie authored Sep 19, 2023
2 parents 9a9d2e8 + 28ac2e1 commit dcbf226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(helpers)

if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
set(CMAKE_FIND_FRAMEWORK NEVER)
set(Python3_FIND_FRAMEWORK NEVER)
set(Python3_FIND_STRATEGY LOCATION)
endif()

find_package(Python3 COMPONENTS Interpreter REQUIRED)
Expand Down

0 comments on commit dcbf226

Please sign in to comment.