File: IncludeUrl_ERROR_script.cmake

package info (click to toggle)
ycm-cmake-modules 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,640 kB
  • sloc: python: 319; sh: 181; makefile: 22
file content (9 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/script.cmake" "include(IncludeUrl)
include_url(\"file://${CMAKE_CURRENT_BINARY_DIR}/foo.cmake\" DOWNLOAD_ALWAYS)
")
execute_process(COMMAND ${CMAKE_COMMAND} -P "${CMAKE_CURRENT_BINARY_DIR}/script.cmake"
                RESULT_VARIABLE _res
                ERROR_QUIET)
if(NOT _res)
  message(FATAL_ERROR "include_url: ERROR (script did not return an error)")
endif()