Skip to content

Commit

Permalink
Temporary fix for x86 MINGW
Browse files Browse the repository at this point in the history
  • Loading branch information
Jovasa committed Jan 31, 2024
1 parent bb89833 commit 967060d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@ else()
set_property( SOURCE ${LIB_SOURCES_STRATEGIES_AVX2} APPEND PROPERTY COMPILE_FLAGS "-mavx2 -mbmi -mpopcnt -mlzcnt -mbmi2" )
set_property( SOURCE ${LIB_SOURCES_STRATEGIES_SSE41} APPEND PROPERTY COMPILE_FLAGS "-msse4.1" )
endif()

# Temporary fix for MINGW
if(CMAKE_SYSTEM_NAME MATCHES ".*MINGW.*")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-strong -mavx2 -mbmi -mabm -mpopcnt -mlzcnt -mbmi2 -Wa,-muse-unaligned-vector-move")
endif()


set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(kvazaar PUBLIC Threads::Threads)
Expand Down

0 comments on commit 967060d

Please sign in to comment.