aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorrobot-ya-builder <robot-ya-builder@yandex-team.com>2022-10-03 13:42:11 +0300
committerrobot-ya-builder <robot-ya-builder@yandex-team.com>2022-10-03 13:42:11 +0300
commit13d4d93b54c59bbaac9b0b8bcac6d97ef591dcc8 (patch)
treea357e613cd206c48ad1f0d4819621f03235c8d2e /CMakeLists.txt
parent8802f8ecdbe8bb031f90d7ecc6aeccfd373b1c84 (diff)
downloadydb-13d4d93b54c59bbaac9b0b8bcac6d97ef591dcc8.tar.gz
External build system generator release 11
Update tools: yexport
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt39
1 files changed, 12 insertions, 27 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3ecc4238c4..34b904b681 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,33 +30,18 @@ include(cmake/protobuf.cmake)
include(cmake/yandex_common.cmake)
include(cmake/global_vars.cmake)
-conan_cmake_configure(
- GENERATORS cmake_find_package
- REQUIRES
- bison/3.5.3
- c-ares/1.18.1
- libiconv/1.15
- liburing/2.1
- openssl/1.1.1l
- ragel/6.10
- yasm/1.3.0
- zlib/1.2.12
- IMPORTS
- "bin, *yasm* -> ./bin"
- "bin, bison* -> ./bin/bison/bin"
- "bin, ragel* -> ./bin"
- "bin, ytasm* -> ./bin"
- "res, * -> ./bin/bison/res"
- OPTIONS
- libiconv:shared=True
-)
-conan_cmake_autodetect(settings)
-conan_cmake_install(
- PATH_OR_REFERENCE .
- BUILD missing
- REMOTE conancenter
- SETTINGS ${settings}
-)
+if (CMAKE_CROSSCOMPILING)
+ include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
+else()
+ conan_cmake_autodetect(settings)
+ conan_cmake_install(
+ PATH_OR_REFERENCE ${CMAKE_SOURCE_DIR}
+ INSTALL_FOLDER ${CMAKE_BINARY_DIR}
+ BUILD missing
+ REMOTE conancenter
+ SETTINGS ${settings}
+ )
+endif()
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
include(CMakeLists.linux.txt)