diff --git a/libc/utils/UnitTest/CMakeLists.txt b/libc/utils/UnitTest/CMakeLists.txt index c6e5d9a11824..5c15e3f7fa4b 100644 --- a/libc/utils/UnitTest/CMakeLists.txt +++ b/libc/utils/UnitTest/CMakeLists.txt @@ -6,3 +6,4 @@ add_llvm_library( ) target_include_directories(LibcUnitTest PUBLIC ${LIBC_SOURCE_DIR}) add_dependencies(LibcUnitTest standalone_cpp) +target_link_libraries(LibcUnitTest PUBLIC libc_test_utils) diff --git a/libc/utils/testutils/CMakeLists.txt b/libc/utils/testutils/CMakeLists.txt index 966c44802c18..aab8d34dc2db 100644 --- a/libc/utils/testutils/CMakeLists.txt +++ b/libc/utils/testutils/CMakeLists.txt @@ -1,8 +1,10 @@ -add_library( - libc_test_utils - ExecuteFunction.h -) - if(CMAKE_HOST_UNIX) - target_sources(libc_test_utils PRIVATE ExecuteFunctionUnix.cpp) + set(EFFile ExecuteFunctionUnix.cpp) endif() + +add_llvm_library( + libc_test_utils + ${EFFile} + ExecuteFunction.h + LINK_COMPONENTS Support +)