Index: libc/utils/testutils/CMakeLists.txt =================================================================== --- libc/utils/testutils/CMakeLists.txt +++ libc/utils/testutils/CMakeLists.txt @@ -1,8 +1,10 @@ -add_library( +if(CMAKE_HOST_UNIX) + set(EFFile ExecuteFunctionUnix.cpp) +endif() + +add_llvm_library( libc_test_utils + ${EFFile} ExecuteFunction.h + LINK_COMPONENTS Support ) - -if(CMAKE_HOST_UNIX) - target_sources(libc_test_utils PRIVATE ExecuteFunctionUnix.cpp) -endif()