File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -357,11 +357,13 @@ macro(enable_cross_compiler)
357
357
if (NOT DEFINED EMSCRIPTEN_ROOT )
358
358
include (FetchContent )
359
359
message (STATUS "fetch emscripten repo main branch. ..." )
360
- FetchContent_Declare (
361
- emscripten GIT_REPOSITORY https://github.com/emscripten-core/emscripten GIT_TAG main
360
+ FetchContent_Declare (emscripten
361
+ GIT_REPOSITORY https://github.com/emscripten-core/emscripten
362
+ GIT_TAG main
363
+ SOURCE_SUBDIR this-directory-does-not-exist
362
364
)
363
365
if (NOT emscripten_POPULATED )
364
- FetchContent_Populate (emscripten )
366
+ FetchContent_MakeAvailable (emscripten )
365
367
set (EMSCRIPTEN_ROOT "${emscripten_SOURCE_DIR} " )
366
368
endif ()
367
369
endif ()
Original file line number Diff line number Diff line change @@ -266,12 +266,13 @@ function(package_project)
266
266
)
267
267
268
268
# download ForwardArguments
269
- FetchContent_Declare (
270
- _fargs URL https://github.com/polysquare/cmake-forward-arguments/archive/refs/tags/v1.0.0.zip
269
+ FetchContent_Declare (_fargs
270
+ URL https://github.com/polysquare/cmake-forward-arguments/archive/refs/tags/v1.0.0.zip
271
+ SOURCE_SUBDIR this-directory-does-not-exist
271
272
)
272
273
FetchContent_GetProperties (_fargs )
273
274
if (NOT _fargs_POPULATED )
274
- FetchContent_Populate (_fargs )
275
+ FetchContent_MakeAvailable (_fargs )
275
276
endif ()
276
277
include ("${_fargs_SOURCE_DIR} /ForwardArguments.cmake" )
277
278
@@ -289,10 +290,13 @@ function(package_project)
289
290
)
290
291
291
292
# download ycm
292
- FetchContent_Declare (_ycm URL https://github.com/robotology/ycm/archive/refs/tags/v0.13.0.zip )
293
+ FetchContent_Declare (_ycm
294
+ URL https://github.com/robotology/ycm/archive/refs/tags/v0.13.0.zip
295
+ SOURCE_SUBDIR this-directory-does-not-exist
296
+ )
293
297
FetchContent_GetProperties (_ycm )
294
298
if (NOT _ycm_POPULATED )
295
- FetchContent_Populate (_ycm )
299
+ FetchContent_MakeAvailable (_ycm )
296
300
endif ()
297
301
include ("${_ycm_SOURCE_DIR} /modules/InstallBasicPackageFiles.cmake" )
298
302
You can’t perform that action at this time.
0 commit comments