summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJohn Zimmermann <me@johnnynator.dev>2021-05-09 01:47:32 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-05-12 20:30:37 +0000
commit7d8475538b3710d8966333114ed57e980f69bc95 (patch)
tree1e46d664054a8ccec2a43af72b0f2a0ea55c1ee4 /cmake
parent21f32758d4af9352be150d751cebc9c1f6bd6136 (diff)
Fix typo in FindWrapAtomic.cmake
There was a D missing, we want to set CMAKE_REQUIRED_LIBRARIES Change-Id: I7a76d60480ef7bff439f298fe85614d3b7e3ae88 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 224fccdaecbabf72caef3cc7996afe7ad3a857f5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindWrapAtomic.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/FindWrapAtomic.cmake b/cmake/FindWrapAtomic.cmake
index 56aa7323bf..c2582bdd6b 100644
--- a/cmake/FindWrapAtomic.cmake
+++ b/cmake/FindWrapAtomic.cmake
@@ -30,10 +30,10 @@ int main(int, char **)
check_cxx_source_compiles("${atomic_test_sources}" HAVE_STDATOMIC)
if(NOT HAVE_STDATOMIC)
- set(_req_libraries "${CMAKE_REQUIRE_LIBRARIES}")
- set(CMAKE_REQUIRE_LIBRARIES "atomic")
+ set(_req_libraries "${CMAKE_REQUIRED_LIBRARIES}")
+ set(CMAKE_REQUIRED_LIBRARIES "atomic")
check_cxx_source_compiles("${atomic_test_sources}" HAVE_STDATOMIC_WITH_LIB)
- set(CMAKE_REQUIRE_LIBRARIES "${_req_libraries}")
+ set(CMAKE_REQUIRED_LIBRARIES "${_req_libraries}")
endif()
add_library(WrapAtomic::WrapAtomic INTERFACE IMPORTED)