]> git.mxchange.org Git - flightgear.git/commitdiff
Cmake: finally build terrasync under Windows
authorFrederic Bouvier <fredfgfs01@free.fr>
Wed, 5 Jan 2011 22:47:08 +0000 (23:47 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Wed, 5 Jan 2011 22:47:08 +0000 (23:47 +0100)
utils/TerraSync/CMakeLists.txt
utils/TerraSync/terrasync.cxx

index ae3af2f994397dae1ea5eb89b77a6c51e2bda008..bedc1018d356ad9c4a1d821235fb3dfa6134e943 100644 (file)
@@ -5,7 +5,8 @@ add_executable(terrasync terrasync.cxx)
 
 target_link_libraries(terrasync 
        ${SIMGEAR_LIBRARIES}
-       ${ZLIB_LIBRARIES})
+       ${ZLIB_LIBRARIES}
+    ${WINSOCK_LIBRARY})
 
 if(HAVE_SVN_CLIENT)
        target_link_libraries(terrasync ${SVN_CLIENT_LIBRARIES})
index d48e43f775cfbf34a3c3467444fcda56f5fcbfb0..bcf6e0ca838ecafaf9e9e2f20eec1f04ec6d8f2e 100644 (file)
 #include <time.h>
 #include <unistd.h>
 #elif defined(_MSC_VER)
-#include <io.h>
+#   include <io.h>
+#   ifndef HAVE_SVN_CLIENT_H
+#       include <time.h>
+#       include <process.h>
+#   endif
 #endif
 
 #include <stdlib.h>             // atoi() atof() abs() system()