From b0a61f61101ecdd18f506393d5cd51db0a5304df Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Wed, 5 Jan 2011 23:47:08 +0100 Subject: [PATCH] Cmake: finally build terrasync under Windows --- utils/TerraSync/CMakeLists.txt | 3 ++- utils/TerraSync/terrasync.cxx | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/TerraSync/CMakeLists.txt b/utils/TerraSync/CMakeLists.txt index ae3af2f99..bedc1018d 100644 --- a/utils/TerraSync/CMakeLists.txt +++ b/utils/TerraSync/CMakeLists.txt @@ -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}) diff --git a/utils/TerraSync/terrasync.cxx b/utils/TerraSync/terrasync.cxx index d48e43f77..bcf6e0ca8 100644 --- a/utils/TerraSync/terrasync.cxx +++ b/utils/TerraSync/terrasync.cxx @@ -33,7 +33,11 @@ #include #include #elif defined(_MSC_VER) -#include +# include +# ifndef HAVE_SVN_CLIENT_H +# include +# include +# endif #endif #include // atoi() atof() abs() system()