aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/CMakeLists.txt
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-10 11:08:43 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-10 11:08:43 +0300
commitd32759b7eb812b4a4033cc61e1e98245544b4992 (patch)
tree22bbb3e9b46c1b55818aaf475f699ae187ce328b /contrib/libs/libc_compat/CMakeLists.txt
parent471e9b902d01b70b2d12146772e30528a216ee82 (diff)
downloadydb-d32759b7eb812b4a4033cc61e1e98245544b4992.tar.gz
intermediate changes
ref:7e819949a28b77d60c98019ed1950733e734a77e
Diffstat (limited to 'contrib/libs/libc_compat/CMakeLists.txt')
-rw-r--r--contrib/libs/libc_compat/CMakeLists.txt25
1 files changed, 5 insertions, 20 deletions
diff --git a/contrib/libs/libc_compat/CMakeLists.txt b/contrib/libs/libc_compat/CMakeLists.txt
index b0046618d9..a681d385f3 100644
--- a/contrib/libs/libc_compat/CMakeLists.txt
+++ b/contrib/libs/libc_compat/CMakeLists.txt
@@ -6,23 +6,8 @@
# original buildsystem will not be accepted.
-
-add_library(contrib-libs-libc_compat)
-target_include_directories(contrib-libs-libc_compat PUBLIC
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/include/readpassphrase
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/include/random
-)
-target_include_directories(contrib-libs-libc_compat PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/include/readpassphrase
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/include/random
-)
-target_sources(contrib-libs-libc_compat PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/string.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/readpassphrase.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/explicit_bzero.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/getrandom.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/memfd_create.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/reallocarray.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/strlcat.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libc_compat/strlcpy.c
-)
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (UNIX)
+ include(CMakeLists.linux.txt)
+endif()