Skip to content

Commit 4390172

Browse files
committed
Update cmake minimum required to version 3.5
1 parent 7d8b06b commit 4390172

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

CMakeLists.txt

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CMake setup for Unicorn 2.
22
# By Huitao Chen & Nguyen Anh Quynh, 2019-2020
33

4-
cmake_minimum_required(VERSION 3.1)
4+
cmake_minimum_required(VERSION 3.5)
55

66
# Only required for MSVC, but we can't know the compiler at this point because we haven't
77
# called enable_language() or project(), and if we did that it would lock in the old
@@ -17,10 +17,8 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
1717
cmake_policy(SET CMP0092 NEW)
1818
endif()
1919

20-
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.3")
21-
# Honor visibility properties for all target types.
22-
cmake_policy(SET CMP0063 NEW)
23-
endif()
20+
# Honor visibility properties for all target types.
21+
cmake_policy(SET CMP0063 NEW)
2422

2523
option(ZIG_BUILD "Enable zig build" OFF)
2624
if(ZIG_BUILD)

0 commit comments

Comments
 (0)