aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-03-31 09:44:41 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-03-31 09:44:41 +0200
commit33837ba2ca7fc1d35349a5ab26aef2d3a83d9f7f (patch)
tree09bf4b1289ffeec7060a06687474d351523004a8 /CMakeLists.txt
parent710553e747d745aad3aef6501ff839448df7bcbf (diff)
downloadsherlock.lv2-33837ba2ca7fc1d35349a5ab26aef2d3a83d9f7f.tar.xz
adapt C_FLAGS, use CMAKE_SHARED_MODULE_SUFFIX.
* adapt C_FLAGS for less verbose warnings with GCC. * use CMAKE_SHARED_MODULE_SUFFIX. * remove unnedded #include.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 2 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4d08dff..35ae444 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,8 +7,8 @@ include_directories(${PROJECT_SOURCE_DIR}/libosc)
include_directories(${PROJECT_SOURCE_DIR}/eo_ui.lv2)
include_directories(${PROJECT_SOURCE_DIR}/osc.lv2)
-set(CMAKE_C_FLAGS "-std=gnu99 -Wextra -Wno-unused-parameter -ffast-math -fvisibility=hidden ${CMAKE_C_FLAGS}")
-set(CMAKE_C_FLAGS "-Wshadow -Wimplicit-function-declaration -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes ${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS "-std=gnu11 -Wextra -Wno-unused-parameter -ffast-math -fvisibility=hidden ${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS "-Wshadow -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes ${CMAKE_C_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-z,nodelete ${CMAKE_MODULE_LINKER_FLAGS}")
set(SHERLOCK_MAJOR_VERSION 0)
@@ -19,13 +19,6 @@ add_definitions("-DSHERLOCK_VERSION=\"${SHERLOCK_VERSION}\"")
add_definitions("-D_GNU_SOURCE=1") # asprintf
set(DEST lib/lv2/sherlock.lv2)
-if(WIN32)
- set(LIB_EXT ".dll")
-elseif(APPLE)
- set(LIB_EXT ".so")
-else()
- set(LIB_EXT ".so")
-endif()
find_package(PkgConfig) # ${PKG_CONFIG_FOUND}