Define _MIDL_USE_GUIDDEF_, this causes __decspec(selectany) to be used on the iids. This way we don't need any linker flags to silence warnings and it also fixes errors when linking later.
svn path=/branches/cmake-bringup/; revision=50573
+add_definitions(-D_MIDL_USE_GUIDDEF_)
+
list(APPEND IDL_SOURCES
# These are the ones that MS uuid contains:
# activaut.idl
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 "<CMAKE_LINKER> /lib ${CMAKE_CL_NOLOGO} <LINK_FLAGS> /ignore:4006 /out:<TARGET> <OBJECTS> ")
-endif()
-
add_library(uuid ${SOURCE})
add_dependencies(uuid psdk)