[clang-tools-extra] r357694 - Use a cmake check for linux that actually works.

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 4 06:54:01 PDT 2019


Author: nico
Date: Thu Apr  4 06:54:01 2019
New Revision: 357694

URL: http://llvm.org/viewvc/llvm-project?rev=357694&view=rev
Log:
Use a cmake check for linux that actually works.

Modified:
    clang-tools-extra/trunk/clangd/CMakeLists.txt

Modified: clang-tools-extra/trunk/clangd/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CMakeLists.txt?rev=357694&r1=357693&r2=357694&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/CMakeLists.txt Thu Apr  4 06:54:01 2019
@@ -116,7 +116,7 @@ add_clang_library(clangDaemon
   )
 
 add_subdirectory(refactor/tweaks)
-if (LINUX)
+if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
   # FIXME: Make fuzzer not use linux-specific APIs, build it everywhere.
   add_subdirectory(fuzzer)
 endif()




More information about the cfe-commits mailing list