We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Boost_ROOT
1 parent 7d5a6d1 commit 8800b5aCopy full SHA for 8800b5a
cmake/module/AddBoostIfNeeded.cmake
@@ -17,6 +17,18 @@ function(add_boost_if_needed)
17
directory and other added INTERFACE properties.
18
]=]
19
20
+ if(CMAKE_HOST_APPLE)
21
+ find_program(HOMEBREW_EXECUTABLE brew)
22
+ if(HOMEBREW_EXECUTABLE)
23
+ execute_process(
24
+ COMMAND ${HOMEBREW_EXECUTABLE} --prefix boost
25
+ OUTPUT_VARIABLE Boost_ROOT
26
+ ERROR_QUIET
27
+ OUTPUT_STRIP_TRAILING_WHITESPACE
28
+ )
29
+ endif()
30
31
+
32
# We cannot rely on find_package(Boost ...) to work properly without
33
# Boost_NO_BOOST_CMAKE set until we require a more recent Boost because
34
# upstream did not ship proper CMake files until 1.82.0.
0 commit comments