[libc-commits] [libc] b67b26a - [libc][Obvious] Include MPFRWrapper and testutils only if tests are enabled.
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Fri Feb 10 01:09:30 PST 2023
Author: Siva Chandra Reddy
Date: 2023-02-10T09:04:41Z
New Revision: b67b26acc2abb1c5dbaa88a31cf6892b0a01c0d1
URL: https://github.com/llvm/llvm-project/commit/b67b26acc2abb1c5dbaa88a31cf6892b0a01c0d1
DIFF: https://github.com/llvm/llvm-project/commit/b67b26acc2abb1c5dbaa88a31cf6892b0a01c0d1.diff
LOG: [libc][Obvious] Include MPFRWrapper and testutils only if tests are enabled.
Added:
Modified:
libc/utils/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/utils/CMakeLists.txt b/libc/utils/CMakeLists.txt
index e6cfc8fdd0b81..d4ed96fa8f984 100644
--- a/libc/utils/CMakeLists.txt
+++ b/libc/utils/CMakeLists.txt
@@ -1,2 +1,4 @@
-add_subdirectory(MPFRWrapper)
-add_subdirectory(testutils)
+if(LLVM_INCLUDE_TESTS)
+ add_subdirectory(MPFRWrapper)
+ add_subdirectory(testutils)
+endif()
More information about the libc-commits
mailing list