Skip to content

Commit

Permalink
cmake: define _WIN32_WINNT and WINVER
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Oct 30, 2023
1 parent ae83b32 commit 3b17574
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
$<$<PLATFORM_ID:Windows>:_WIN32_WINNT=0xa00 WINVER=0xa00>
)

include(GNUInstallDirs)

Expand Down

0 comments on commit 3b17574

Please sign in to comment.