Skip to content

Commit 9fc5203

Browse files
committed
Use ENDSTONE_API_VERSION variable for FetchContent GIT_TAG
1 parent ee928d3 commit 9fc5203

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ project(cpp_example CXX)
55
set(CMAKE_CXX_STANDARD 20)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77

8+
# Change this to the Endstone version you are targeting
9+
set(ENDSTONE_API_VERSION "v0.11" CACHE STRING "Endstone API version tag")
10+
811
include(FetchContent)
912
FetchContent_Declare(
1013
endstone
1114
GIT_REPOSITORY https://github.com/EndstoneMC/endstone.git
12-
GIT_TAG v0.11 # Change this to the Endstone version you are targeting
15+
GIT_TAG ${ENDSTONE_API_VERSION}
1316
)
1417
FetchContent_MakeAvailable(endstone)
1518

0 commit comments

Comments
 (0)