Skip to content

Commit f57022f

Browse files
committed
revert "example/CMakeLists.txt"
1 parent dae6552 commit f57022f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

example/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ cmake_minimum_required(VERSION 3.13.0)
33
project(example LANGUAGES C CXX ASM)
44

55
# Download xrepo.cmake if not exists in build directory.
6-
# You should use "${CMAKE_BINARY_DIR}/xrepo.cmake"
7-
if(NOT EXISTS "../xrepo.cmake")
6+
if(NOT EXISTS "${CMAKE_BINARY_DIR}/xrepo.cmake")
87
message(STATUS "Downloading xrepo.cmake from https://github.com/xmake-io/xrepo-cmake/")
98
# mirror https://cdn.jsdelivr.net/gh/xmake-io/xrepo-cmake@main/xrepo.cmake
109
file(DOWNLOAD "https://raw.githubusercontent.com/xmake-io/xrepo-cmake/main/xrepo.cmake"
11-
"../xrepo.cmake"
10+
"${CMAKE_BINARY_DIR}/xrepo.cmake"
1211
TLS_VERIFY ON)
1312
endif()
1413

1514
# Include xrepo.cmake so we can use xrepo_package function.
16-
# You should use "${CMAKE_BINARY_DIR}/xrepo.cmake"
17-
include(../xrepo.cmake)
15+
include(${CMAKE_BINARY_DIR}/xrepo.cmake)
1816

1917
# Call `xrepo_package` function to use default pcre2
2018
xrepo_package("pcre2" MODE debug)

0 commit comments

Comments
 (0)