aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/cpuid_check
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2022-10-26 16:40:35 +0300
committerdcherednik <dcherednik@ydb.tech>2022-10-26 16:40:35 +0300
commitb981cca279190176740c3bf5c5b4fd03be51b599 (patch)
treef5ec6210fdce0e976cbbe4dc8ae78bb6509adf49 /library/cpp/cpuid_check
parent6dc0de995652f7eeecdbdb88dc98b00bb0653a2f (diff)
downloadydb-b981cca279190176740c3bf5c5b4fd03be51b599.tar.gz
Enable linux-arm platform.
Diffstat (limited to 'library/cpp/cpuid_check')
-rw-r--r--library/cpp/cpuid_check/CMakeLists.darwin.txt23
-rw-r--r--library/cpp/cpuid_check/CMakeLists.linux.txt23
-rw-r--r--library/cpp/cpuid_check/CMakeLists.txt20
3 files changed, 51 insertions, 15 deletions
diff --git a/library/cpp/cpuid_check/CMakeLists.darwin.txt b/library/cpp/cpuid_check/CMakeLists.darwin.txt
new file mode 100644
index 00000000000..4e9fc0d5d4e
--- /dev/null
+++ b/library/cpp/cpuid_check/CMakeLists.darwin.txt
@@ -0,0 +1,23 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(library-cpp-cpuid_check INTERFACE)
+target_link_libraries(library-cpp-cpuid_check INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+)
+
+add_global_library_for(library-cpp-cpuid_check.global library-cpp-cpuid_check)
+target_link_libraries(library-cpp-cpuid_check.global PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(library-cpp-cpuid_check.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/cpuid_check/cpu_id_check.cpp
+)
diff --git a/library/cpp/cpuid_check/CMakeLists.linux.txt b/library/cpp/cpuid_check/CMakeLists.linux.txt
new file mode 100644
index 00000000000..4e9fc0d5d4e
--- /dev/null
+++ b/library/cpp/cpuid_check/CMakeLists.linux.txt
@@ -0,0 +1,23 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(library-cpp-cpuid_check INTERFACE)
+target_link_libraries(library-cpp-cpuid_check INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+)
+
+add_global_library_for(library-cpp-cpuid_check.global library-cpp-cpuid_check)
+target_link_libraries(library-cpp-cpuid_check.global PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(library-cpp-cpuid_check.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/cpuid_check/cpu_id_check.cpp
+)
diff --git a/library/cpp/cpuid_check/CMakeLists.txt b/library/cpp/cpuid_check/CMakeLists.txt
index 4e9fc0d5d4e..79468a5d8d0 100644
--- a/library/cpp/cpuid_check/CMakeLists.txt
+++ b/library/cpp/cpuid_check/CMakeLists.txt
@@ -6,18 +6,8 @@
# original buildsystem will not be accepted.
-
-add_library(library-cpp-cpuid_check INTERFACE)
-target_link_libraries(library-cpp-cpuid_check INTERFACE
- contrib-libs-cxxsupp
- yutil
-)
-
-add_global_library_for(library-cpp-cpuid_check.global library-cpp-cpuid_check)
-target_link_libraries(library-cpp-cpuid_check.global PUBLIC
- contrib-libs-cxxsupp
- yutil
-)
-target_sources(library-cpp-cpuid_check.global PRIVATE
- ${CMAKE_SOURCE_DIR}/library/cpp/cpuid_check/cpu_id_check.cpp
-)
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()