ref: 4b10fc28b4ed90de163fed9358cf27f8027433de
parent: 90476c3a3e0ef75edbff77c3f43ba196c4799414
author: Gabriel Ravier <gabravier@gmail.com>
date: Fri Apr 17 08:22:36 EDT 2020
CMakeLists: Add CMake 3.5.1 support Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.10.2)
+cmake_minimum_required(VERSION 3.5.1)
#############
@@ -248,7 +248,7 @@
target_link_libraries(CSE2 PRIVATE ddraw dsound version shlwapi imm32 winmm dxguid gdi32)
# Newer MSVC is missing `dinput.lib`
-if(MSVC AND MSVC_VERSION GREATER_EQUAL 1500)
+if(MSVC AND NOT (MSVC_VERSION LESS 1500)):wq
target_link_libraries(CSE2 PRIVATE dinput8)
else()
target_link_libraries(CSE2 PRIVATE dinput)