diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-03-06 16:56:18 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-03-06 16:56:18 +0300 |
commit | cbc0c479c131a1e63ca86fe98b031e1bcac725d8 (patch) | |
tree | 12245a82da1c7f54d54befcfb7706643e8166505 /library/cpp/digest/old_crc | |
parent | ea8e336dc456c44b848619e120a8f3643c6125af (diff) | |
download | ydb-cbc0c479c131a1e63ca86fe98b031e1bcac725d8.tar.gz |
External build system generator release 17
Update tools: yexport
Diffstat (limited to 'library/cpp/digest/old_crc')
-rw-r--r-- | library/cpp/digest/old_crc/CMakeLists.darwin.txt | 15 | ||||
-rw-r--r-- | library/cpp/digest/old_crc/CMakeLists.linux-aarch64.txt | 15 | ||||
-rw-r--r-- | library/cpp/digest/old_crc/CMakeLists.linux.txt | 15 | ||||
-rw-r--r-- | library/cpp/digest/old_crc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/digest/old_crc/gencrc/CMakeLists.txt | 2 |
5 files changed, 41 insertions, 8 deletions
diff --git a/library/cpp/digest/old_crc/CMakeLists.darwin.txt b/library/cpp/digest/old_crc/CMakeLists.darwin.txt index 247ca3494b..a4caa8c756 100644 --- a/library/cpp/digest/old_crc/CMakeLists.darwin.txt +++ b/library/cpp/digest/old_crc/CMakeLists.darwin.txt @@ -7,6 +7,12 @@ add_subdirectory(gencrc) +get_built_tool_path( + TOOL_gencrc_bin + TOOL_gencrc_dependency + library/cpp/digest/old_crc/gencrc + gencrc +) add_library(cpp-digest-old_crc) target_link_libraries(cpp-digest-old_crc PUBLIC @@ -21,9 +27,14 @@ add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc DEPENDS - ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + ${TOOL_gencrc_bin} COMMAND - ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + ${TOOL_gencrc_bin} > crc.inc ) +if(NOT CMAKE_CROSSCOMPILING) + add_dependencies(cpp-digest-old_crc + gencrc +) +endif() diff --git a/library/cpp/digest/old_crc/CMakeLists.linux-aarch64.txt b/library/cpp/digest/old_crc/CMakeLists.linux-aarch64.txt index 9c1091a218..a0883b65f5 100644 --- a/library/cpp/digest/old_crc/CMakeLists.linux-aarch64.txt +++ b/library/cpp/digest/old_crc/CMakeLists.linux-aarch64.txt @@ -7,6 +7,12 @@ add_subdirectory(gencrc) +get_built_tool_path( + TOOL_gencrc_bin + TOOL_gencrc_dependency + library/cpp/digest/old_crc/gencrc + gencrc +) add_library(cpp-digest-old_crc) target_link_libraries(cpp-digest-old_crc PUBLIC @@ -22,9 +28,14 @@ add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc DEPENDS - ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + ${TOOL_gencrc_bin} COMMAND - ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + ${TOOL_gencrc_bin} > crc.inc ) +if(NOT CMAKE_CROSSCOMPILING) + add_dependencies(cpp-digest-old_crc + gencrc +) +endif() diff --git a/library/cpp/digest/old_crc/CMakeLists.linux.txt b/library/cpp/digest/old_crc/CMakeLists.linux.txt index 9c1091a218..a0883b65f5 100644 --- a/library/cpp/digest/old_crc/CMakeLists.linux.txt +++ b/library/cpp/digest/old_crc/CMakeLists.linux.txt @@ -7,6 +7,12 @@ add_subdirectory(gencrc) +get_built_tool_path( + TOOL_gencrc_bin + TOOL_gencrc_dependency + library/cpp/digest/old_crc/gencrc + gencrc +) add_library(cpp-digest-old_crc) target_link_libraries(cpp-digest-old_crc PUBLIC @@ -22,9 +28,14 @@ add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc DEPENDS - ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + ${TOOL_gencrc_bin} COMMAND - ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + ${TOOL_gencrc_bin} > crc.inc ) +if(NOT CMAKE_CROSSCOMPILING) + add_dependencies(cpp-digest-old_crc + gencrc +) +endif() diff --git a/library/cpp/digest/old_crc/CMakeLists.txt b/library/cpp/digest/old_crc/CMakeLists.txt index 5bb4faffb4..eee324bb60 100644 --- a/library/cpp/digest/old_crc/CMakeLists.txt +++ b/library/cpp/digest/old_crc/CMakeLists.txt @@ -10,6 +10,6 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin.txt) -elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux.txt) endif() diff --git a/library/cpp/digest/old_crc/gencrc/CMakeLists.txt b/library/cpp/digest/old_crc/gencrc/CMakeLists.txt index 5bb4faffb4..eee324bb60 100644 --- a/library/cpp/digest/old_crc/gencrc/CMakeLists.txt +++ b/library/cpp/digest/old_crc/gencrc/CMakeLists.txt @@ -10,6 +10,6 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin.txt) -elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux.txt) endif() |