xref: /llvm-project/libc/src/__support/OSUtil/CMakeLists.txt (revision ecfffbfd3921fd47f3afc1d03a7518b34ec396b3)
1if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2  return()
3endif()
4
5add_subdirectory(${LIBC_TARGET_OS})
6set(target_os_util libc.src.__support.OSUtil.${LIBC_TARGET_OS}.${LIBC_TARGET_OS}_util)
7if(NOT TARGET ${target_os_util})
8  return()
9endif()
10
11add_object_library(
12  osutil
13  ALIAS
14    ${target_os_util}
15  DEPENDS
16    ${target_os_util}
17)
18