[CMake] Fix setting result of libatomic check for MSVC
authorLuís Marques <luismarques@lowrisc.org>
Mon, 17 Feb 2020 15:21:41 +0000 (15:21 +0000)
committerLuís Marques <luismarques@lowrisc.org>
Mon, 17 Feb 2020 15:32:28 +0000 (15:32 +0000)
commitf128f442a3d23674bee19ae18e29f92c9dfe40cd
tree995e6f610ff7c1a51cb8e9ff58c914173f8ea8f2
parenta7a96c726e884101b09ca8bea1944e2f5b3950e7
[CMake] Fix setting result of libatomic check for MSVC

We were skipping the libatomic requirement check for MSVC, but not setting
the corresponding variable, HAVE_CXX_ATOMICS_WITHOUT_LIB. D69869 seems to
have to failed to build on ARM MSVC because of that, and was reverted. This
should probably fix the issue. The plan is to check the result of the build
bots and then submit a more thoroughly refactored version for review.
llvm/cmake/modules/CheckAtomic.cmake