mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
Bundle libcurl, libopc bugfix #18
This commit is contained in:
parent
d6493d6d5f
commit
56adee9d81
@ -1,6 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
|
||||
option(CURL_STATIC "Link to curl statically" on)
|
||||
|
||||
project(sist2 C)
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/CMakeModules")
|
||||
|
||||
@ -89,6 +91,16 @@ target_compile_options(sist2
|
||||
-fomit-frame-pointer
|
||||
)
|
||||
|
||||
if (CURL_STATIC)
|
||||
execute_process(COMMAND curl-config --static-libs
|
||||
OUTPUT_VARIABLE CURL_STATIC_LIBS
|
||||
ERROR_QUIET
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
string(REPLACE " " ";" CURL_LIBS "${CURL_STATIC_LIBS}")
|
||||
else ()
|
||||
set(CURL_LIBS curl)
|
||||
endif ()
|
||||
|
||||
TARGET_LINK_LIBRARIES(
|
||||
sist2
|
||||
|
||||
@ -111,7 +123,7 @@ TARGET_LINK_LIBRARIES(
|
||||
${PROJECT_SOURCE_DIR}/lib/libonion_static.a
|
||||
|
||||
pthread
|
||||
curl
|
||||
${CURL_LIBS}
|
||||
m
|
||||
bz2
|
||||
${PROJECT_SOURCE_DIR}/lib/libmagic.a
|
||||
|
Binary file not shown.
Binary file not shown.
@ -6,7 +6,7 @@
|
||||
#define EPILOG "Made by simon987 <me@simon987.net>. Released under GPL-3.0"
|
||||
|
||||
|
||||
static const char *const Version = "1.2.2";
|
||||
static const char *const Version = "1.2.3";
|
||||
static const char *const usage[] = {
|
||||
"sist2 scan [OPTION]... PATH",
|
||||
"sist2 index [OPTION]... INDEX",
|
||||
|
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@
|
||||
|
||||
<nav class="navbar navbar-expand-lg">
|
||||
<a class="navbar-brand" href="/">sist2</a>
|
||||
<span class="badge badge-pill version">v1.2.2</span>
|
||||
<span class="badge badge-pill version">v1.2.3</span>
|
||||
<span class="tagline">Lightning-fast file system indexer and search tool </span>
|
||||
<a style="margin-left: auto" id="theme" class="btn" title="Toggle theme" href="/">Theme</a>
|
||||
</nav>
|
||||
|
Loading…
x
Reference in New Issue
Block a user