From 45f87ac845fc888dbcfcd40ab0055dd0477dcceb Mon Sep 17 00:00:00 2001 From: Guillaume Pasero <guillaume.pasero@c-s.fr> Date: Thu, 2 Apr 2015 17:59:15 +0200 Subject: [PATCH] ENH: superbuild: unify sqlite version --- SuperBuild/CMake/External_sqlite.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SuperBuild/CMake/External_sqlite.cmake b/SuperBuild/CMake/External_sqlite.cmake index adc7b0458a..cfa2a13026 100644 --- a/SuperBuild/CMake/External_sqlite.cmake +++ b/SuperBuild/CMake/External_sqlite.cmake @@ -14,7 +14,8 @@ else() SETUP_SUPERBUILD(PROJECT ${proj}) message(STATUS " Using SQLite SuperBuild version") - if(UNIX) + #if(UNIX) + if(0) ExternalProject_Add(${proj} PREFIX ${proj} URL "https://sqlite.org/2014/sqlite-autoconf-3080702.tar.gz" @@ -36,7 +37,8 @@ else() DEPENDEES patch update DEPENDERS configure ) - else(MSVC) + #else(MSVC) + else() ExternalProject_Add(${proj} PREFIX ${proj} URL "http://www.sqlite.org/2015/sqlite-amalgamation-3080801.zip" @@ -45,8 +47,7 @@ else() BINARY_DIR ${SQLITE_SB_BUILD_DIR} INSTALL_DIR ${SB_INSTALL_PREFIX} DOWNLOAD_DIR ${DOWNLOAD_LOCATION} - PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/patches/${proj}/CMakeLists.txt ${SQLITE_SB_SRC} - UPDATE_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/patches/${proj}/sqlite3_win.c ${SQLITE_SB_SRC} + PATCH_COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/patches/${proj} ${SQLITE_SB_SRC} CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:STRING=${SB_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE:STRING=Release -- GitLab