Skip to content

Commit

Permalink
Static linking to MSVC library on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
develancer committed May 14, 2024
1 parent ad5abfa commit 7407b19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ else()
endif()

add_executable(empi src/special/empi.cpp)
if(NOT UNIX)
set_property(TARGET empi PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
endif()
install(TARGETS empi)
target_link_libraries(empi empi-cpu fftw3)
if(WITH_CUDA)
Expand Down

0 comments on commit 7407b19

Please sign in to comment.