[libc-commits] [libc] 147c064 - [libc] Set include directories for the str_to_float test
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Fri Jul 7 13:34:00 PDT 2023
Author: Petr Hosek
Date: 2023-07-07T20:33:54Z
New Revision: 147c0640a3faae5e382c0d319c15112c92e06098
URL: https://github.com/llvm/llvm-project/commit/147c0640a3faae5e382c0d319c15112c92e06098
DIFF: https://github.com/llvm/llvm-project/commit/147c0640a3faae5e382c0d319c15112c92e06098.diff
LOG: [libc] Set include directories for the str_to_float test
This test uses libc headers and need to explicitly include them.
Differential Revision: https://reviews.llvm.org/D154277
Added:
Modified:
libc/test/src/__support/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/test/src/__support/CMakeLists.txt b/libc/test/src/__support/CMakeLists.txt
index 5eabf9320ed406..c5de8f532d4eee 100644
--- a/libc/test/src/__support/CMakeLists.txt
+++ b/libc/test/src/__support/CMakeLists.txt
@@ -105,6 +105,12 @@ add_executable(
str_to_float_comparison_test.cpp
)
+target_include_directories(
+ libc_str_to_float_comparison_test
+ PRIVATE
+ ${LIBC_INCLUDE_DIR}
+)
+
target_link_libraries(libc_str_to_float_comparison_test
PRIVATE
"${LIBC_TARGET}"
More information about the libc-commits
mailing list