Skip to content

Commit ecf3d0e

Browse files
committed
maybe fix macos wheel build
1 parent d87b2db commit ecf3d0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ endif()
1111
project( SpecUtils VERSION 2025.1.0 )
1212
enable_testing() # Enable here to allow running `ctest` from top-most build dir
1313

14+
# Add this line to specify the architectures for MacOS
15+
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "Build architectures for MacOS" FORCE)
16+
1417
option( SpecUtils_ENABLE_D3_CHART "Enables exporting of the D3 chart format" ON )
1518
option( SpecUtils_D3_SUPPORT_FILE_STATIC "Compiles the JS and CSS files into memory, rather than reading files on disk; disable to allow changing JS/CSS without having to recompile" ON )
1619
option( SpecUtils_ENABLE_URI_SPECTRA "Enables encoding/decoding spectra to URIs (for, ex, QR-codes) - requires linking to zlib" OFF )

0 commit comments

Comments
 (0)