Skip to content

Commit 5c12bd2

Browse files
committed
Change cmake_minimum_required to match actual requirements
This is because target_link_options was added in v3.13 So this wouldn't build with cmake v3.12 Likewise in CMAKE_CXX_STANDARD only supports value of 17 starting with cmake v3.9 So the test wouldn't build properly with cmake v3.6
1 parent a62f633 commit 5c12bd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# Todo
3838
# Test build for Windows, Mac and mingw.
3939

40-
cmake_minimum_required(VERSION 3.12)
40+
cmake_minimum_required(VERSION 3.13)
4141
project(godot-cpp LANGUAGES CXX)
4242

4343
option(GENERATE_TEMPLATE_GET_NODE "Generate a template version of the Node class's get_node." ON)

test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
cmake_minimum_required(VERSION 3.13)
12
project(godot-cpp-test)
2-
cmake_minimum_required(VERSION 3.6)
33

44
set(GODOT_GDEXTENSION_DIR ../gdextension/ CACHE STRING "Path to GDExtension interface header directory")
55
set(CPP_BINDINGS_PATH ../ CACHE STRING "Path to C++ bindings")

0 commit comments

Comments
 (0)