Skip to content

Commit dcbf226

Browse files
authored
Merge pull request #872 from kbenzie/benie/macos-respect-python-virtualenv
[cmake] Respect Python virtualenv on macOS
2 parents 9a9d2e8 + 28ac2e1 commit dcbf226

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1515
include(helpers)
1616

1717
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
18-
set(CMAKE_FIND_FRAMEWORK NEVER)
18+
set(Python3_FIND_FRAMEWORK NEVER)
19+
set(Python3_FIND_STRATEGY LOCATION)
1920
endif()
2021

2122
find_package(Python3 COMPONENTS Interpreter REQUIRED)

0 commit comments

Comments
 (0)