-if(LIBSVN_FOUND)
- include_directories(${LIBSVN_INCLUDE_DIR})
-endif(LIBSVN_FOUND)
add_executable(terrasync terrasync.cxx)
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()
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));