diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2022-09-01 05:47:31 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2022-09-01 05:47:31 +0300 |
commit | e83b936566d59e48df0aa4c414beaf0c4519c772 (patch) | |
tree | 43d715760743f81e2060d6ee6f4d4c9d8693751e /util | |
parent | fc8096bf8173562afc5da58dbbb019af2ce1ee2f (diff) | |
download | ydb-e83b936566d59e48df0aa4c414beaf0c4519c772.tar.gz |
Update external build system generation utility
* [cmake] Hierarchical add_subdirectroy structure
* [cmake] Support for same file compilation multiple times with different flags
Diffstat (limited to 'util')
-rw-r--r-- | util/CMakeLists.darwin.txt | 2 | ||||
-rw-r--r-- | util/CMakeLists.linux.txt | 2 | ||||
-rw-r--r-- | util/charset/CMakeLists.txt | 7 |
3 files changed, 11 insertions, 0 deletions
diff --git a/util/CMakeLists.darwin.txt b/util/CMakeLists.darwin.txt index df0df97ce8..2ec99fe7e9 100644 --- a/util/CMakeLists.darwin.txt +++ b/util/CMakeLists.darwin.txt @@ -7,6 +7,8 @@ find_package(ZLIB REQUIRED) +add_subdirectory(charset) +add_subdirectory(draft) add_library(yutil) target_compile_options(yutil PRIVATE diff --git a/util/CMakeLists.linux.txt b/util/CMakeLists.linux.txt index 7a775f2a8d..f930092846 100644 --- a/util/CMakeLists.linux.txt +++ b/util/CMakeLists.linux.txt @@ -7,6 +7,8 @@ find_package(ZLIB REQUIRED) +add_subdirectory(charset) +add_subdirectory(draft) add_library(yutil) target_compile_options(yutil PRIVATE diff --git a/util/charset/CMakeLists.txt b/util/charset/CMakeLists.txt index 6aaff21b09..81257887b3 100644 --- a/util/charset/CMakeLists.txt +++ b/util/charset/CMakeLists.txt @@ -20,3 +20,10 @@ target_joined_source(util-charset ${CMAKE_SOURCE_DIR}/util/charset/utf8.cpp ${CMAKE_SOURCE_DIR}/util/charset/wide.cpp ) +target_sources_custom(util-charset + .sse41 + SRCS + ${CMAKE_SOURCE_DIR}/util/charset/wide_sse41.cpp + CUSTOM_FLAGS + -msse4.1 +) |