Newer
Older
minerva / Meta / CMake / link_libc_headers.cmake
@minerva minerva on 13 Jul 383 bytes Initial commit
cmake_minimum_required(VERSION 3.22)

if (NOT DEFINED MINERVA_ARCH OR NOT DEFINED MINERVA_SYSROOT)
    message(FATAL_ERROR "MINERVA_ARCH and MINERVA_SYSROOT must be defined")
endif()

# MINERVA_ARCH is used by the included file.
include(Userland/Libraries/LibC/Headers.cmake)

link_libc_headers("${CMAKE_CURRENT_SOURCE_DIR}/Userland/Libraries/LibC" "${MINERVA_SYSROOT}/usr/include")