From a02f2905b85dbf203be1f54bee3c888f5e8745d9 Mon Sep 17 00:00:00 2001 From: fryshorts Date: Sun, 3 May 2015 14:49:24 +0200 Subject: [PATCH] deps-jansson: Enable -fPIC for non-gcc compilers Always use -fPIC when not on WIN32 or APPLE and not just with gcc. This allows for building obs with clang on linux and FreeBSD without explicitly specifying -fPIC as compiler flag to cmake. --- deps/jansson/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/jansson/CMakeLists.txt b/deps/jansson/CMakeLists.txt index 41255f27d..20b4e545e 100644 --- a/deps/jansson/CMakeLists.txt +++ b/deps/jansson/CMakeLists.txt @@ -94,7 +94,7 @@ if (MSVC) endif() -if (NOT WIN32 AND (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)) +if (NOT WIN32 AND NOT APPLE) set(CMAKE_C_FLAGS "-fPIC") endif()