Skip to content

Commit

Permalink
BUG: wrong use of bash subshell in cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpa committed Dec 2, 2024
1 parent 9875bbe commit 52d3109
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ project(ants LANGUAGES CXX)

# Set the macOS SDK root
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CMAKE_OSX_SYSROOT "$(xcrun --show-sdk-path)")
execute_process(
COMMAND xcrun --show-sdk-path
OUTPUT_VARIABLE SDK_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(CMAKE_OSX_SYSROOT ${SDK_PATH})
message(STATUS "Using macOS SDK: ${CMAKE_OSX_SYSROOT}")
endif()

Expand Down

0 comments on commit 52d3109

Please sign in to comment.