diff options
author | Marc-André Moreau <marcandre.moreau@gmail.com> | 2011-11-26 05:19:58 +0400 |
---|---|---|
committer | Marc-André Moreau <marcandre.moreau@gmail.com> | 2011-11-26 05:19:58 +0400 |
commit | e70e044b8575f9273bee2e19a778bbda4b14d6db (patch) | |
tree | 39f33181f48c3c6085a52df75f194d20cb69cdea /CMakeLists.txt | |
parent | f229992cffc19e0abbab404e25ec8bf2dd66a986 (diff) |
cmake: build plugins as shared libraries
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a00dbf1f..ad9a8acab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,8 +42,13 @@ if(NOT DEFINED CMAKE_INSTALL_BINDIR) set(CMAKE_INSTALL_BINDIR "bin") endif() +if(NOT BUILD_SHARED_LIBS) + set(BUILD_SHARED_LIBS ON) +endif() + if(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") CHECK_C_COMPILER_FLAG(-Wno-unused-result Wno-unused-result) if(Wno-unused-result) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result") |