- fix "use of uninitialized variables" warning.
Yes, cmake got this to!

svn path=/trunk/; revision=53111
This commit is contained in:
Jérôme Gardou 2011-08-07 00:46:46 +00:00
parent 186d1c6ac5
commit 909357699b
2 changed files with 2 additions and 0 deletions

View 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}")

View 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})