Skip to content

Commit

Permalink
specify AVX2 arch in compile options
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilDohne committed Feb 24, 2024
1 parent 72bac9f commit 045a35d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PhotoshopAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ target_link_libraries(PhotoshopAPI PUBLIC zlibstatic Blosc2::blosc2_static)

if(MSVC)
target_compile_options(PhotoshopAPI PRIVATE /MP /DNOMINMAX)
target_compile_options(PhotoshopAPI PUBLIC /arch:AVX2)
else()
target_compile_options(PhotoshopAPI PUBLIC -mavx2)
endif()

0 comments on commit 045a35d

Please sign in to comment.