Skip to content

Commit

Permalink
fix build on arm platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed Aug 8, 2024
1 parent a931897 commit 6cd04bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(CMAKE_RC_FLAGS -D_WIN64)
endif()

if("${COLORER_BUILD_ARCH}" STREQUAL "ARM64")
# Fix build on GitHub agent (VSCMD_VER: 17.10.5 , VCToolsVersion: 14.40.33807)
set(LINK_FLAGS "${LINK_FLAGS} /ALTERNATENAME:__imp___std_init_once_begin_initialize=__imp_InitOnceBeginInitialize")
set(LINK_FLAGS "${LINK_FLAGS} /ALTERNATENAME:__imp___std_init_once_complete=__imp_InitOnceComplete")
endif()

# xerces-c vs msxml
add_definitions(-DNOGDI)
# old functions
Expand Down

0 comments on commit 6cd04bc

Please sign in to comment.