Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2020-03-11 19:33:12 +0300
committerRay Molenkamp <github@lazydodo.com>2020-03-11 19:33:12 +0300
commit200695dd890caa5771043c2454a6731918023cad (patch)
tree9bcd06def248dece447955cb5b00ac1fe64bc2ac /source/blender/blentranslation
parenta9c0ad53e2609f4582f00822498f31e8ba0925f8 (diff)
Windows: Clean-up linker warnings regarding MSVCRT.lib
For debug builds we link the against the release mode libs for C based libraries, which are technically linked against a different CRT, which the linker will implicitly try to link. Which results in a linker warning about mixing the debug/release CRT. This patch prevents the implicit linking of the release CRT in debug configurations for sub projects that had issues with it.
Diffstat (limited to 'source/blender/blentranslation')
-rw-r--r--source/blender/blentranslation/msgfmt/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blentranslation/msgfmt/CMakeLists.txt b/source/blender/blentranslation/msgfmt/CMakeLists.txt
index 147c375aa6e..350473fa195 100644
--- a/source/blender/blentranslation/msgfmt/CMakeLists.txt
+++ b/source/blender/blentranslation/msgfmt/CMakeLists.txt
@@ -37,6 +37,10 @@ if(APPLE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${PLATFORM_LINKFLAGS}")
endif()
+if(WIN32)
+ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /nodefaultlib:MSVCRT.lib")
+endif()
+
add_executable(msgfmt ${SRC})
target_link_libraries(msgfmt bf_blenlib)