From 7d59db068a219dc06d738790cc9d7880655d5849 Mon Sep 17 00:00:00 2001 From: oulap <32451236+oulap@users.noreply.github.com> Date: Fri, 27 Sep 2024 20:05:33 -0400 Subject: [PATCH] debugging cake lists --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cbd190..90eb6b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,8 @@ message(STATUS "ITK_DIR=${ITK_DIR} pybind11_DIR=${pybind11_DIR}") # -------------------------------------------------- # set -DAPPLE=ON and -DAPPLE_ARM64=ON on cmake command line for arm64 build # when building with freesurfer, CMAKE_C_COMPILER and CMAKE_CXX_COMPILER will be specified on the cmake command line -if(${APPLE}) +if(DEFINED ENV{APPLE}) + MESSAGE(STATUS "ARCH VARIABLE SET TO --[$ENV{APPLE_ARM64}]--") if("${APPLE_ARM64}" STREQUAL "ON") set(CMAKE_OSX_ARCHITECTURES "arm64") add_definitions(-DARM64 -DDarwin -DPNG_ARM_NEON_OPT=0)