From 2b4d045b85dceb8566583a04ffabafb5d4419d78 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 3 Sep 2011 17:35:54 +0000 Subject: [PATCH] [RPCRT4_WINETEST] * Fix msvc build. svn path=/trunk/; revision=53552 --- rostests/winetests/rpcrt4/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rostests/winetests/rpcrt4/CMakeLists.txt b/rostests/winetests/rpcrt4/CMakeLists.txt index 6b408c6743b..75b418df0f9 100644 --- a/rostests/winetests/rpcrt4/CMakeLists.txt +++ b/rostests/winetests/rpcrt4/CMakeLists.txt @@ -30,6 +30,11 @@ list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/server_c.c ${CMAKE_CURRENT_BINARY_DIR}/server_s.c) +if(MSVC) + # The nmake generator misses this dependency, so set it explicitly until this bug is fixed. + set_source_files_properties(server.c PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/server_s.h) +endif() + add_executable(rpcrt4_winetest ${SOURCE}) target_link_libraries(rpcrt4_winetest uuid