diff options
author | akhropov <akhropov@yandex-team.com> | 2024-07-23 14:16:17 +0300 |
---|---|---|
committer | akhropov <akhropov@yandex-team.com> | 2024-07-23 14:39:23 +0300 |
commit | 04a25d587ec6b4598c11b3e19ae3e33eb911d7b7 (patch) | |
tree | 1a13bc1577bceb026e0c4d21c1aac62ff627b9bb /build | |
parent | ea64383bb58a96c6e4890e459f853a4ab78f2537 (diff) | |
download | ydb-04a25d587ec6b4598c11b3e19ae3e33eb911d7b7.tar.gz |
Set ARCADIA_ROOT and ARCADIA_BUILD_ROOT for CMake-based builds.
e0ce3e0c53b7a3afb7f4db6f047082a7fd924a61
Diffstat (limited to 'build')
-rw-r--r-- | build/export_generators/cmake/cmake/common.cmake | 2 | ||||
-rw-r--r-- | build/export_generators/hardcoded-cmake/cmake/common.cmake | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/build/export_generators/cmake/cmake/common.cmake b/build/export_generators/cmake/cmake/common.cmake index 6578d58ae7..4eb0fbafce 100644 --- a/build/export_generators/cmake/cmake/common.cmake +++ b/build/export_generators/cmake/cmake/common.cmake @@ -2,6 +2,8 @@ find_package(Python3 REQUIRED) +add_compile_definitions(ARCADIA_ROOT=${PROJECT_SOURCE_DIR}) +add_compile_definitions(ARCADIA_BUILD_ROOT=${PROJECT_BINARY_DIR}) add_compile_definitions(CATBOOST_OPENSOURCE=yes) # assumes ToolName is always both the binary and the target name diff --git a/build/export_generators/hardcoded-cmake/cmake/common.cmake b/build/export_generators/hardcoded-cmake/cmake/common.cmake index 6578d58ae7..4eb0fbafce 100644 --- a/build/export_generators/hardcoded-cmake/cmake/common.cmake +++ b/build/export_generators/hardcoded-cmake/cmake/common.cmake @@ -2,6 +2,8 @@ find_package(Python3 REQUIRED) +add_compile_definitions(ARCADIA_ROOT=${PROJECT_SOURCE_DIR}) +add_compile_definitions(ARCADIA_BUILD_ROOT=${PROJECT_BINARY_DIR}) add_compile_definitions(CATBOOST_OPENSOURCE=yes) # assumes ToolName is always both the binary and the target name |