Work around issue in CMake 2.6


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4175 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/CMakeLists.txt b/win/CMakeLists.txt
index ee0a5c0..1fa02c7 100644
--- a/win/CMakeLists.txt
+++ b/win/CMakeLists.txt
@@ -2,7 +2,7 @@
 
 include_directories(${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/win)
 
-configure_file(resdefs.h.in resdefs.h)
+configure_file(resdefs.h.in ${CMAKE_CURRENT_BINARY_DIR}/resdefs.h)
 
 add_subdirectory(rfb_win32)
 add_subdirectory(vncviewer)