Skip to content

Commit

Permalink
fix logic for macOS Intel in Stochastic solver CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed May 25, 2024
1 parent d0e965c commit be0a2d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
brew info boost
brew info hdf5
- name: Build Macos AMD
- name: Build Macos ARM
if: matrix.platform == 'macos-14'
run: |
platform=macos
Expand Down
8 changes: 5 additions & 3 deletions Stochastic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ endif()
#include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../vcommons/include)
#include_directories(${VCELL_MESSAGING_INCLUDE_DIR})
if (APPLE)
if (CMAKE_OS_ARCHITECTURES STREQUAL "x86_64")
link_directories("/usr/local/Cellar/hdf5/1.14.3/lib")
else ()
execute_process(COMMAND uname -m OUTPUT_VARIABLE PROCESSOR_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE)
message("Processor Architecture: ${PROCESSOR_ARCHITECTURE}")
if (PROCESSOR_ARCHITECTURE STREQUAL "arm64")
link_directories("/opt/homebrew/lib")
else ()
link_directories("/usr/local/Cellar/hdf5/1.14.3_1/lib")
endif()
endif()

Expand Down

0 comments on commit be0a2d1

Please sign in to comment.