From a38a82e318b07d1548df82a527950424fd52fb44 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Fri, 9 May 2014 19:52:30 +0400 Subject: [PATCH] Fix build with clang. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78314d1..b02d9a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,7 +75,7 @@ set (adcclient_SOURCES add_library(adc STATIC ${adc_SOURCES}) add_library(network STATIC ${network_SOURCES}) add_library(utils STATIC ${utils_SOURCES}) -if(CMAKE_COMPILER_IS_GNUCC) +if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") set_target_properties(utils PROPERTIES COMPILE_FLAGS -fPIC) set_target_properties(network PROPERTIES COMPILE_FLAGS -fPIC) endif()