ref: 3dd904adf60951b0be02454fbcefa91757606f49
parent: 43c0b670abfcd539e426a9bbef9220530fabe1b5
parent: e05fef85fa882bf829a815175722003380f090b6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Apr 27 14:41:13 EDT 2020
Merge pull request #114 from GabrielRavier/accurateAddCMake3_10Support Accurate: Change minimum CMake version from 3.12 to 3.5.1
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.12)
+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))
target_link_libraries(CSE2 PRIVATE dinput8)
else()
target_link_libraries(CSE2 PRIVATE dinput)