Skip to content

Commit

Permalink
Build seem to be successfull on Mac OS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
vfonov committed Nov 14, 2023
1 parent 28562d3 commit aa8ab71
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: CMake
on:
push:
branches:
- test-ci
- develop
- master
pull_request:
branches:
- test-ci
- develop
- master

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
Expand Down
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ IF(NOT LIBMINC_EXTERNALLY_CONFIGURED)
OPTION(LIBMINC_USE_NIFTI "Build with NIfTI support" OFF)
OPTION(LIBMINC_USE_SYSTEM_NIFTI "Use system NIfTI-1 library" OFF)

OPTION(LIBMINC_USE_ASAN "Build with Address Sanitizer" OFF)

SET (LIBMINC_EXPORTED_TARGETS "LIBMINC-targets")
SET (LIBMINC_INSTALL_BIN_DIR bin)
SET (LIBMINC_INSTALL_LIB_DIR lib${LIB_SUFFIX})
Expand Down Expand Up @@ -109,6 +111,13 @@ IF(UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
ENDIF(UNIX)


IF(LIBMINC_USE_ASAN)
add_compile_options(-fno-omit-frame-pointer -fsanitize=address)
add_link_options(-fno-omit-frame-pointer -fsanitize=address)
ENDIF(LIBMINC_USE_ASAN)


# check for prereqs
INCLUDE(CheckFunctionExists)
INCLUDE(CheckSymbolExists)
Expand Down

0 comments on commit aa8ab71

Please sign in to comment.