File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,16 @@ cmake_minimum_required(VERSION 3.13.0)
33project (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 )
1312endif ()
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
2018xrepo_package("pcre2" MODE debug)
You can’t perform that action at this time.
0 commit comments