From: Shuanglei Tao Date: Mon, 30 Oct 2023 15:45:44 +0000 (+0800) Subject: cmake: define _WIN32_WINNT and WINVER X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=3b175748c7413f02b6b3d390629a6a10414e23e2;p=ttyd.git cmake: define _WIN32_WINNT and WINVER --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 27366f1..dc71802 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,10 @@ endif() add_executable(${PROJECT_NAME} ${SOURCE_FILES}) target_include_directories(${PROJECT_NAME} PUBLIC ${INCLUDE_DIRS}) target_link_libraries(${PROJECT_NAME} ${LINK_LIBS}) -target_compile_definitions(${PROJECT_NAME} PRIVATE TTYD_VERSION="${PROJECT_VERSION}") +target_compile_definitions(${PROJECT_NAME} PUBLIC + TTYD_VERSION="${PROJECT_VERSION}" + $<$:_WIN32_WINNT=0xa00 WINVER=0xa00> +) include(GNUInstallDirs)