We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 181077d commit 2ca1381Copy full SHA for 2ca1381
CMakeLists.txt
@@ -7,6 +7,8 @@
7
cmake_minimum_required(VERSION 3.13.3)
8
project(thirdparty_sqlite)
9
10
+option(SQLITE_GENERATE_INSTALL_TARGET "When enabled, will cause the project to create the install targets" OFF)
11
+
12
function(sqliteMain)
13
set(parameter_list
14
"SQLITE_VERSION=3.29.0"
@@ -46,8 +48,10 @@ function(sqliteMain)
46
48
"${CMAKE_CURRENT_SOURCE_DIR}/src"
47
49
)
50
- install(TARGETS thirdparty_sqlite DESTINATION lib)
- install(FILES src/sqlite3ext.h src/sqlite3.h DESTINATION include)
51
+ if(SQLITE_GENERATE_INSTALL_TARGET)
52
+ install(TARGETS thirdparty_sqlite DESTINATION lib)
53
+ install(FILES src/sqlite3ext.h src/sqlite3.h DESTINATION include)
54
+ endif()
55
endfunction()
56
57
sqliteMain()
0 commit comments