diff options
Diffstat (limited to 'library/cpp/cppparser/CMakeLists.txt')
-rw-r--r-- | library/cpp/cppparser/CMakeLists.txt | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/library/cpp/cppparser/CMakeLists.txt b/library/cpp/cppparser/CMakeLists.txt index d77f7e725d..3e0811fb22 100644 --- a/library/cpp/cppparser/CMakeLists.txt +++ b/library/cpp/cppparser/CMakeLists.txt @@ -6,12 +6,10 @@ # original buildsystem will not be accepted. - -add_library(library-cpp-cppparser) -target_link_libraries(library-cpp-cppparser PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(library-cpp-cppparser PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/cppparser/parser.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() |