]> git.mxchange.org Git - flightgear.git/commitdiff
Fix Apple libsvn include for isysroot (SDK) builds.
authorJames Turner <zakalawe@mac.com>
Sat, 22 Jan 2011 18:49:54 +0000 (18:49 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 22 Jan 2011 18:49:54 +0000 (18:49 +0000)
utils/TerraSync/CMakeLists.txt
utils/TerraSync/terrasync.cxx

index 86526eb0b932c609c6f667fb228213b23a6bb856..88b208c1661321ea4d609b8b98cb462d453ddd6a 100644 (file)
@@ -1,7 +1,4 @@
 
-if(LIBSVN_FOUND)
-       include_directories(${LIBSVN_INCLUDE_DIR})
-endif(LIBSVN_FOUND)
        
 add_executable(terrasync terrasync.cxx)
 
@@ -12,7 +9,13 @@ target_link_libraries(terrasync
 
 if(LIBSVN_FOUND)
        target_link_libraries(terrasync ${LIBSVN_LIBRARIES})
-       set_property(TARGET terrasync APPEND PROPERTY COMPILE_FLAGS ${APR_CFLAGS})
+       set_property(TARGET terrasync APPEND PROPERTY COMPILE_FLAGS "${APR_CFLAGS}")
+       
+       IF(APPLE)
+           set_property(SOURCE terrasync.cxx PROPERTY COMPILE_FLAGS "-iwithsysroot ${LIBSVN_INCLUDE_DIR}")
+       ELSE()
+           include_directories(${LIBSVN_INCLUDE_DIR})
+       ENDIF(APPLE)
 endif()
 
 
index 8776cdc5a886c78d0f639bb6f0f68e248afe65c6..f1a2cc46badab1aaaffa8fccf612bae4babfa32b 100644 (file)
@@ -183,8 +183,10 @@ int mysvn_setup(void) {
     if (err)
         return svn_cmdline_handle_exit_error(err, pool, "terrasync: ");
     mysvn_ctx->auth_baton = ab;
+#if (SVN_VER_MINOR >= 5)
     mysvn_ctx->conflict_func = NULL;
     mysvn_ctx->conflict_baton = NULL;
+#endif
     // Now our magic revisions
     mysvn_rev = (svn_opt_revision_t*) apr_palloc(pool, 
         sizeof(svn_opt_revision_t));