aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-18 14:53:13 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-18 14:53:13 +0100
commit4caf28f553347a91867365dfa572f917ca06d230 (patch)
tree7e790b8baba76a4ee5ac3f315b12062c886bf6d7
parentf4dd59c7bd252b6b890435b9ec2d4c9404b9ee05 (diff)
downloadsherlock.lv2-4caf28f553347a91867365dfa572f917ca06d230.tar.xz
only strip the release build.
-rw-r--r--CMakeLists.txt10
-rw-r--r--VERSION2
2 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1f33348..56f7df8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,10 +20,12 @@ elseif(WIN32)
set(CMAKE_C_FLAGS "-mstackrealign ${CMAKE_C_FLAGS}")
endif()
-if(APPLE)
- set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-dead_strip ${CMAKE_MODULE_LINKER_FLAGS}")
-else()
- set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--gc-sections -Wl,-s ${CMAKE_MODULE_LINKER_FLAGS}")
+if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
+ if(APPLE)
+ set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-dead_strip ${CMAKE_MODULE_LINKER_FLAGS}")
+ else()
+ set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--gc-sections -Wl,-s ${CMAKE_MODULE_LINKER_FLAGS}")
+ endif()
endif()
add_definitions("-D_GNU_SOURCE=1") # asprintf
diff --git a/VERSION b/VERSION
index 62dc2ab..b965ab8 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.13.19
+0.13.21