aboutsummaryrefslogtreecommitdiff
path: root/ports/sqlite3/portfile.cmake
diff options
context:
space:
mode:
authorDaniel Strommen <nerdile@outlook.com>2018-02-27 12:24:41 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-27 12:24:41 -0800
commitba3f552b67a76bc62ef4aecdee778ac47abf330c (patch)
treee28f642e0a8e24224cbe2042ac8287ee0f99cde3 /ports/sqlite3/portfile.cmake
parentf272a872d40edc2714f0b326e211e9b181aa65cc (diff)
downloadvcpkg-ba3f552b67a76bc62ef4aecdee778ac47abf330c.tar.gz
vcpkg-ba3f552b67a76bc62ef4aecdee778ac47abf330c.zip
Install sqlite3.exe as part of sqlite3 port (#2525)
* Install sqlite3.exe as part of sqlite3 port - Modeled after the bzip2 port: If SQLITE3_SKIP_TOOLS is not set, build and install sqlite3.exe as part of the sqlite3 package. sqlite3.dll must also be copied to the tools folder for sqlite3.exe to be able to launch. - Tested on Windows RS3 with VS 2017 15.5.2. * [sqlite3] Separate into tool feature
Diffstat (limited to 'ports/sqlite3/portfile.cmake')
-rw-r--r--ports/sqlite3/portfile.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/ports/sqlite3/portfile.cmake b/ports/sqlite3/portfile.cmake
index fc06850e2..031eefbf2 100644
--- a/ports/sqlite3/portfile.cmake
+++ b/ports/sqlite3/portfile.cmake
@@ -12,14 +12,20 @@ vcpkg_extract_source_archive(${ARCHIVE})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
+set(SQLITE3_SKIP_TOOLS ON)
+if("tool" IN_LIST FEATURES)
+ set(SQLITE3_SKIP_TOOLS OFF)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
- -DSOURCE=${SOURCE_PATH}
- -DVCPKG_CMAKE_SYSTEM_NAME=${VCPKG_CMAKE_SYSTEM_NAME}
+ -DSQLITE3_SKIP_TOOLS=${SQLITE3_SKIP_TOOLS}
+ OPTIONS_DEBUG
+ -DSQLITE3_SKIP_TOOLS=ON
)
-vcpkg_build_cmake()
+
vcpkg_install_cmake()
file(READ ${CURRENT_PACKAGES_DIR}/debug/share/sqlite3/sqlite3Config-debug.cmake SQLITE3_DEBUG_CONFIG)