Skip to content

Commit

Permalink
WIP: Set C as ASM
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Dec 27, 2022
1 parent 3ca047d commit 22ec23c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 17)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

project(IOOMEZarrNGFF CXX C ASM)
project(IOOMEZarrNGFF CXX C ASM_NASM ASM)

set(IOOMEZarrNGFF_LIBRARIES IOOMEZarrNGFF)

Expand Down
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ set(ZLIB_LIBRARY ${ITKZLIB_LIBRARIES} CACHE FILEPATH "Path to zlib library" FORC
add_library(ZLIB::ZLIB ALIAS ${ITKZLIB_LIBRARIES})

set(_itk_build_shared ${BUILD_SHARED_LIBS})

# TensorStore wants GCC as assembler
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER}) # undo this setting from:
# https://github.com/dockcross/dockcross/blob/e913a7f1d632940a4e6fb233fb6b5cdfa8c4502d/manylinux_2_28-x64/Toolchain.cmake#L11

# we want to compile tensorstore as a static library
# that way, all of it can be included in IOOMEZarrNGFF.dll
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared libraries?" FORCE)
Expand Down

0 comments on commit 22ec23c

Please sign in to comment.