Skip to content

Commit

Permalink
COMP: Update itkExternal_Eigen3.cmake
Browse files Browse the repository at this point in the history
Pass CMAKE_OSX_ARCHITECTURES to fix cross-compiling on Apple Silicon. Otherwise, compiler won't be set properly and cmake will fail to configure.
  • Loading branch information
ningfei committed May 31, 2023
1 parent 19079c8 commit b8c2c94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMake/itkExternal_Eigen3.cmake
Expand Up @@ -50,6 +50,7 @@ else()
"-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}"
"-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
"-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}"
"-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}"
${_additional_external_project_args}
WORKING_DIRECTORY ${_eigen3_build_dir}
OUTPUT_VARIABLE ITKEigen3Config_STDOUT
Expand Down

0 comments on commit b8c2c94

Please sign in to comment.