cmake searches and forces the use of programs not in the active path
apple big sur 11.2.3 on Mac mini silicon - cmake 3.20-rc3
I have installed home-brew,
from really bad experiences with home-brew I have the home-brew binaries in the path ONLY when a home-brew package is really needed
unfortunately the code snippet in Darwin.cmake
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
list(PREPEND CMAKE_SYSTEM_PREFIX_PATH
/opt/homebrew # Brew on Apple Silicon
)
endif()
forces the search and use of home-brew binaries even when I CHOOSE not to have them available for general use
I have subversion installed as a home-brew package I would like cmake to discover it only if the home-brew binaries are in the PATH
e.s.
as a workaround I commented the statements getting the desired behaviour
Edited by enrico sorichetti