Skip to content

Commit 52571c6

Browse files
committed
[libc][NFC] Remove incorrect file level dependency in CMake
Summary: CMake doesn't support this type of dependency so it keeps emitting a warning. Just remove it, because it's not doing anything currently anyway. If we really wanted this to work you'd need to add a custom target that has a dependency on the output of a custom command, but that would only be worhwhile if we ever expected this file to change.
1 parent 25bf4e2 commit 52571c6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libc/test/src/__support/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,9 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
267267
str_to_float_comparison_test.cpp
268268
)
269269

270-
set(float_test_file ${CMAKE_CURRENT_SOURCE_DIR}/str_to_float_comparison_data.txt)
271-
272270
add_custom_command(TARGET libc_str_to_float_comparison_test
273271
POST_BUILD
274272
COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:libc_str_to_float_comparison_test> ${float_test_file}
275-
DEPENDS ${float_test_file}
276273
COMMENT "Test the strtof and strtod implementations against precomputed results."
277274
VERBATIM)
278275
endif()

0 commit comments

Comments
 (0)