[CMAKE]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sun, 7 Aug 2011 00:46:46 +0000 (00:46 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sun, 7 Aug 2011 00:46:46 +0000 (00:46 +0000)
- fix "use of uninitialized variables" warning.
Yes, cmake got this to!

svn path=/trunk/; revision=53111

reactos/cmake/compilerflags.cmake
reactos/cmake/msvc.cmake

index 55bd78d..1fc7401 100644 (file)
@@ -1,5 +1,6 @@
 
 function(add_compiler_flags)
+    set(flags_list "")
     # Adds the compiler flag to both CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
     foreach(flag ${ARGN})
         set(flags_list "${flags_list} ${flag}")
index abc8472..bc445c8 100644 (file)
@@ -156,6 +156,7 @@ macro(add_importlib_target _exports_file)
 
     # Add neccessary importlibs for redirections
     set(_libraries "")
+    set(_dependencies "")
     foreach(_lib ${ARGN})
         list(APPEND _libraries "${CMAKE_BINARY_DIR}/importlibs/${_lib}.lib")
         list(APPEND _dependencies ${_lib})