Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/ruy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Jacob <benoitjacob@google.com>2022-07-12 18:40:28 +0300
committerCopybara-Service <copybara-worker@google.com>2022-07-12 18:40:53 +0300
commit72155b3185246e9143f4c6a3a7f283d2ebba8524 (patch)
tree765b99b25cf8e5eb40797a4e90ee163cea83abcf
parentfd42b25c4512913fd47a86826aecec7c9c3ee2b4 (diff)
Redo CMakeLists change from https://github.com/google/ruy/pull/313
accidentally reverted by copybara export in https://github.com/google/ruy/commit/fd42b25c4512913fd47a86826aecec7c9c3ee2b4 PiperOrigin-RevId: 460471200
-rw-r--r--CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e085ed0..262d704 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,7 +46,7 @@ option(RUY_FIND_CPUINFO "Use find_package to find cpuinfo" OFF)
# Skip cpuinfo if it was already generated, which can happen when ruy is
# a subdirectory in a wider project that already uses cpuinfo.
-if (NOT TARGET cpuinfo AND NOT TARGET cpuinfo::cpuinfo)
+if (NOT TARGET cpuinfo::cpuinfo)
if (RUY_FIND_CPUINFO)
find_package(cpuinfo REQUIRED)
else()
@@ -82,10 +82,6 @@ if (NOT TARGET cpuinfo AND NOT TARGET cpuinfo::cpuinfo)
endif()
endif()
-if (TARGET cpuinfo AND NOT TARGET cpuinfo::cpuinfo)
- add_library(cpuinfo::cpuinfo ALIAS cpuinfo)
-endif()
-
# googletest is only needed for tests. Projects embedding ruy as a subdirectory
# and not needing to build ruy tests may proceed without a local checkout of
# third_party/googletest.