mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-03-12 23:10:01 +00:00
Fix windows build with CUDA (#1101)
Co-authored-by: firecoperana <firecoperana>
This commit is contained in:
@@ -96,11 +96,5 @@ endif()
|
||||
if (WIN32)
|
||||
TARGET_LINK_LIBRARIES(${TARGET} PRIVATE ws2_32)
|
||||
endif()
|
||||
if(MSVC)
|
||||
set_target_properties(${TARGET} PROPERTIES
|
||||
CXX_STANDARD 17
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
)
|
||||
endif()
|
||||
|
||||
target_compile_features(${TARGET} PRIVATE cxx_std_17)
|
||||
|
||||
@@ -47,6 +47,7 @@ struct DatabaseHandle {
|
||||
#endif
|
||||
|
||||
using json = nlohmann::ordered_json;
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
bool server_verbose = false;
|
||||
bool server_log_json = true;
|
||||
@@ -1310,7 +1311,6 @@ int main(int argc, char ** argv) {
|
||||
|
||||
const auto list_saved_prompts = [&ctx_server, ¶ms](const httplib::Request& req, httplib::Response& res) {
|
||||
json response = json::array();
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
try {
|
||||
for (const auto& entry : fs::directory_iterator(params.slot_save_path)) {
|
||||
|
||||
Reference in New Issue
Block a user