Skip to content

Commit

Permalink
try fix 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 65fa114
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(CMAKE_RC_FLAGS -D_WIN64)
endif()

if("${COLORER_BUILD_ARCH}" STREQUAL "ARM64")
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 65fa114

Please sign in to comment.