diff --git a/lib/sdk/uuid/CMakeLists.txt b/lib/sdk/uuid/CMakeLists.txt index dc85bde2e0a..ed842a4f3e4 100644 --- a/lib/sdk/uuid/CMakeLists.txt +++ b/lib/sdk/uuid/CMakeLists.txt @@ -1,4 +1,6 @@ +add_definitions(-D_MIDL_USE_GUIDDEF_) + list(APPEND IDL_SOURCES # These are the ones that MS uuid contains: # activaut.idl @@ -211,11 +213,5 @@ list(APPEND SOURCE otherguids.c undoc.c) -if(MSVC) - # Disable warning about duplicate symbols. MS uuid lib contains them as well. - # Cmake doesn't handle LINK_FLAGS here - set(CMAKE_C_CREATE_STATIC_LIBRARY " /lib ${CMAKE_CL_NOLOGO} /ignore:4006 /out: ") -endif() - add_library(uuid ${SOURCE}) add_dependencies(uuid psdk)