Skip to content

Commit

Permalink
Fix mcl build under ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerman committed Sep 10, 2024
1 parent 9fe01c9 commit d2bb267
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ elseif(TARGET_PROCESSOR STREQUAL "x86_64" AND NOT APPLE)
add_custom_command(OUTPUT ${MSM_OBJ}
COMMAND ${CMAKE_CXX_COMPILER} -c -o ${MSM_OBJ} ${CMAKE_CURRENT_SOURCE_DIR}/src/msm_avx.cpp ${MCL_COMPILE_OPTIONS} -I ${CMAKE_CURRENT_SOURCE_DIR}/include -mavx512f -mavx512ifma -std=c++11 -fno-exceptions -fno-rtti -DCYBOZU_DONT_USE_STRING -DCYBOZU_DONT_USE_EXCEPTION -DNDEBUG
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(msm_avx.o
add_custom_target(msm_avx
SOURCES ${MSM_OBJ})
target_link_libraries(mcl PUBLIC ${MSM_OBJ})
add_dependencies(mcl msm_avx.o)
add_dependencies(mcl msm_avx)
target_link_libraries(mcl_st PUBLIC ${MSM_OBJ})
add_dependencies(mcl_st msm_avx.o)
add_dependencies(mcl_st msm_avx)
target_sources(mcl_st PRIVATE ${MSM_OBJ})
endif()

Expand Down

0 comments on commit d2bb267

Please sign in to comment.