aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/old_crc/CMakeLists.windows-x86_64.txt
diff options
context:
space:
mode:
authorsvidyuk <svidyuk@yandex-team.com>2023-08-30 20:31:54 +0300
committersvidyuk <svidyuk@yandex-team.com>2023-08-30 20:50:06 +0300
commitc76aaf823d18acf064939d806427b39cea1bbe16 (patch)
treed85585d1cea05124f3f264965654164b38a0591e /library/cpp/digest/old_crc/CMakeLists.windows-x86_64.txt
parente7fbce1e36ca8d9a32abcc07805749d572a83dd3 (diff)
downloadydb-c76aaf823d18acf064939d806427b39cea1bbe16.tar.gz
Fix input variable missprint
Diffstat (limited to 'library/cpp/digest/old_crc/CMakeLists.windows-x86_64.txt')
-rw-r--r--library/cpp/digest/old_crc/CMakeLists.windows-x86_64.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/library/cpp/digest/old_crc/CMakeLists.windows-x86_64.txt b/library/cpp/digest/old_crc/CMakeLists.windows-x86_64.txt
index 46890b5496..a4caa8c756 100644
--- a/library/cpp/digest/old_crc/CMakeLists.windows-x86_64.txt
+++ b/library/cpp/digest/old_crc/CMakeLists.windows-x86_64.txt
@@ -6,6 +6,13 @@
# original buildsystem will not be accepted.
+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
@@ -20,9 +27,14 @@ add_custom_command(
OUTPUT
${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc
DEPENDS
- ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/gencrc/gencrc.exe
+ ${TOOL_gencrc_bin}
COMMAND
- ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/gencrc/gencrc.exe
+ ${TOOL_gencrc_bin}
>
crc.inc
)
+if(NOT CMAKE_CROSSCOMPILING)
+ add_dependencies(cpp-digest-old_crc
+ gencrc
+)
+endif()