Skip to content

Commit

Permalink
[cmake] on msvc, link statically against runtime library so we dont h…
Browse files Browse the repository at this point in the history
…ave to ship that dll aswell
  • Loading branch information
harrand committed Oct 22, 2024
1 parent 46e61d6 commit 0568722
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/compiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ endfunction()
function(configure_msvc)
# TODO
target_compile_definitions(topaz PRIVATE -D_CRT_SECURE_NO_WARNINGS)
if(${CMAKE_BUILD_TYPE} MATCHES "debug")
target_link_options(topaz PUBLIC /MTd)
else()
target_link_options(topaz PUBLIC /MT)
endif()
endfunction()

function(configure_gnu_like)
Expand Down

0 comments on commit 0568722

Please sign in to comment.