[zlib] CMakeLists.txt: Compile GNU assembler sources when using Clang.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Fri, 4 Sep 2015 00:45:48 +0000 (20:45 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Fri, 4 Sep 2015 00:45:48 +0000 (20:45 -0400)
Note that the compiler ID is "AppleClang" when using Apple's version of
LLVM/Clang with cmake-3.0+.

extlib/zlib/CMakeLists.txt

index 000381c..28a2871 100644 (file)
@@ -135,7 +135,7 @@ if(NOT MINGW)
     )
 endif()
 
-if(CMAKE_COMPILER_IS_GNUCC)
+if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
        # Gens/GS II: cmake-2.8.4 is required for nasm.
        cmake_minimum_required(VERSION 2.8.4)
        if(ASM686)