[CMAKE]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 8 Nov 2010 19:01:52 +0000 (19:01 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 8 Nov 2010 19:01:52 +0000 (19:01 +0000)
add missing dependency

svn path=/branches/cmake-bringup/; revision=49535

gcc.cmake

index ed83304..679cc21 100644 (file)
--- a/gcc.cmake
+++ b/gcc.cmake
@@ -175,6 +175,7 @@ macro(set_pdef_file _module _pdef_file)
     pdef2def(${_pdef_file})
     get_filename_component(_file ${_pdef_file} NAME_WE)
     target_link_libraries(${_module} "${CMAKE_CURRENT_BINARY_DIR}/${_file}.def")
+    add_dependencies(${_module} ${_file}_def)
 endmacro()
 
 #pseh lib, needed with mingw