Skip to content

Commit 2c2671d

Browse files
authored
Update CMakeLists.txt
replace tabs with spaces
1 parent 786b6a9 commit 2c2671d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

examples/server/CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ option(LLAMA_SERVER_SSL "Build SSL support for the server" OFF)
44

55
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
66

7+
if(MSVC)
8+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17")
9+
endif(MSVC)
10+
711
macro(get_WIN32_WINNT version)
812
if (WIN32 AND CMAKE_SYSTEM_VERSION)
913
set(ver ${CMAKE_SYSTEM_VERSION})
10-
string(REGEX MATCH "^([0-9]+).([0-9])" ver ${ver})
14+
string(REGEX MATCH "^([0-9]+).([0-9])" ver ${ver})
1115
string(REPLACE "." "" ver ${ver})
1216
string(REGEX REPLACE "([0-9])" "0\\1" ver ${ver})
1317
set(${version} "0x${ver}")
@@ -19,8 +23,8 @@ get_WIN32_WINNT(ver)
1923
if (MINGW)
2024
# fix: https://github.com/ggerganov/llama.cpp/actions/runs/9651004652/job/26617901362?pr=8006
2125
# add_compile_definitions(_WIN32_WINNT=${GGML_WIN_VER})
22-
add_definitions(-D_WIN32_WINNT=${ver})
23-
message(STATUS "MinGW detected, setting _WIN32_WINNT to ${ver}")
26+
add_definitions(-D_WIN32_WINNT=${ver})
27+
message(STATUS "MinGW detected, setting _WIN32_WINNT to ${ver}")
2428
endif()
2529

2630
set(TARGET_SRCS

0 commit comments

Comments
 (0)