Skip to content

Commit

Permalink
depends: Do not search paths provided by platform-specific variables
Browse files Browse the repository at this point in the history
This change improves isolation from a potentially random environment.
  • Loading branch information
hebasto committed Sep 21, 2024
1 parent 33adc75 commit 40b5231
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion depends/toolchain.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ set(CMAKE_OBJDUMP "@OBJDUMP@")

# Using our own built dependencies should not be
# affected by a potentially random environment.
set(CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH OFF)
set(CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH FALSE)
set(CMAKE_FIND_USE_CMAKE_SYSTEM_PATH FALSE)

set(CMAKE_FIND_ROOT_PATH "@depends_prefix@")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
Expand Down

0 comments on commit 40b5231

Please sign in to comment.