Skip to content

Commit dd3a90c

Browse files
committed
extra care on MacOS intel with cmake 4.x
Fixes: #44 Reviewed-by: Tim Hudson <[email protected]> (Merged from #46)
1 parent c1d47f0 commit dd3a90c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@
9595
# option on command line. This also assumes you have 32-bit version of
9696
# OpenSSL library ready in -DOPENSSL_ROOT_DIR path.
9797
#
98+
# Using cmake 4.x on MacOS
99+
# ========================
100+
# According to cmake changelog [1] you may need to add -DCMAKE_OSX_SYSROOT=macosx
101+
# option to prevent cmake to search for header files in /usr/local/include.
102+
# You typically need it if openssl library you want to test is installed
103+
# in non-standard location (for example in ~/openssl.binaries. In that
104+
# case you want to build tools using commands:
105+
# cmake -S . -B build -DOPENSSL_ROOT_DIR=~/openssl.binaries \
106+
# -DCMAKE_OSX_SYSROOT=macosx
107+
# cmake --build build
108+
#
109+
# [1] https://cmake.org/cmake/help/v4.0/release/4.0.html#other-changes
110+
#
98111

99112
cmake_minimum_required(VERSION 3.10)
100113
project(perf-tools)

0 commit comments

Comments
 (0)