diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-03-17 19:38:27 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-03-17 19:38:27 +0300 |
commit | 26147c4e01ae75f397d4dd999da238bf2c61c851 (patch) | |
tree | 873a652bca08f38df296c77422b40fd404f0481e /CMakeLists.txt | |
parent | 08f6d0d9bb84f493c5dfd3c0d1568445faa26d85 (diff) | |
download | ydb-26147c4e01ae75f397d4dd999da238bf2c61c851.tar.gz |
External build system generator release 21
Update tools: yexport
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea82ab053e..c1567c4047 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,11 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake) include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}) list(APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure") enable_testing() + +# Disable 'empty CUDA_ARCHITECTURES not allowed' warning +# Can't set it in cuda.cmake because of CMake policy subdirectory stack rules +cmake_policy(SET CMP0104 OLD) + include(cmake/antlr.cmake) include(cmake/archive.cmake) include(cmake/bison.cmake) @@ -45,11 +50,11 @@ else() ) endif() -if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) +if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) -elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") include(CMakeLists.linux-aarch64.txt) -elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) |