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

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert <krzmbrzl@gmail.com>2020-09-28 11:29:30 +0300
committerRobert <krzmbrzl@gmail.com>2020-09-28 12:33:55 +0300
commitc90c70acbc28373175422618ddf76f73fb225440 (patch)
treee114981d972c7ec8150c2110008a5cd52548c0b9 /overlay
parentc0bd48d1cd4bd6af7eb40d645b247d8d579c62ea (diff)
BUILD(cmake): Explicitly set CRT link library for minhook
If the library is not explicitly specified, the compiler will choose a version automatically. This chosen version however can easily conflict with the one we set for the overlay-executables which would then cause a conflict to arise (2 different versions of the library referenced) about which MSVC will then warn us: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library Ref: https://stackoverflow.com/q/3007312/3907364
Diffstat (limited to 'overlay')
-rw-r--r--overlay/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/overlay/CMakeLists.txt b/overlay/CMakeLists.txt
index e46a49fc3..c0463e474 100644
--- a/overlay/CMakeLists.txt
+++ b/overlay/CMakeLists.txt
@@ -135,6 +135,8 @@ if(64_BIT AND NOT BUILD_OVERLAY_XCOMPILE)
add_subdirectory("${3RDPARTY_DIR}/minhook" "${CMAKE_CURRENT_BINARY_DIR}/minhook" EXCLUDE_FROM_ALL)
target_compile_definitions(overlay PRIVATE "USE_MINHOOK")
target_link_libraries(overlay PRIVATE minhook)
+
+ set_target_properties(minhook PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
if(MSVC)