Fix build with clang.
This commit is contained in:
parent
3e8699ab24
commit
a38a82e318
|
@ -75,7 +75,7 @@ set (adcclient_SOURCES
|
||||||
add_library(adc STATIC ${adc_SOURCES})
|
add_library(adc STATIC ${adc_SOURCES})
|
||||||
add_library(network STATIC ${network_SOURCES})
|
add_library(network STATIC ${network_SOURCES})
|
||||||
add_library(utils STATIC ${utils_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(utils PROPERTIES COMPILE_FLAGS -fPIC)
|
||||||
set_target_properties(network PROPERTIES COMPILE_FLAGS -fPIC)
|
set_target_properties(network PROPERTIES COMPILE_FLAGS -fPIC)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue