Skip to content

Commit 48d1959

Browse files
committed
Try with target_link_options
1 parent 260ba19 commit 48d1959

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

3rdparty/libcmt/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ if(patch_libcmd)
9494
message(STATUS "Patched LIBCMT.LIB: ${PATCHED_LIBCMT}")
9595

9696
# Tell the linker to use our patched LIBCMT instead of RTM's
97-
target_link_options(patched-libcmt INTERFACE "/NODEFAULTLIB:LIBCMT.LIB")
98-
target_link_libraries(patched-libcmt INTERFACE "${PATCHED_LIBCMT}")
97+
target_link_options(patched-libcmt INTERFACE "-NODEFAULTLIB:LIBCMT.LIB" "${PATCHED_LIBCMT}")
9998
else()
10099
message(STATUS "CRT will not be 100% matching")
101100
endif()

0 commit comments

Comments
 (0)