Skip to content

Commit

Permalink
CMake: Target Windows 7
Browse files Browse the repository at this point in the history
  • Loading branch information
tmp64 committed Dec 3, 2023
1 parent e1f155a commit cd89607
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,9 @@ elseif( COMPILER_MSVC )
# Set Windows subsystem
set( GAME_LINKER_FLAGS "${GAME_LINKER_FLAGS} /SUBSYSTEM:WINDOWS " )

# Set target OS to WinXP for XP toolsets
if( CMAKE_VS_PLATFORM_TOOLSET MATCHES ".*_xp$" )
add_compile_definitions( _WIN32_WINNT=0x0501 )
endif()
# Target Windows 7
add_compile_definitions( _WIN32_WINNT=0x0601 )
add_compile_definitions( WINVER=0x0601 )
endif()

set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${C_CXX_COMPILER_FLAGS}" )
Expand Down

0 comments on commit cd89607

Please sign in to comment.