summaryrefslogtreecommitdiffstats
path: root/data/CMakeLists.txt
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-20 18:58:14 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-20 19:20:27 -0300
commite87fbe13223a7c53404846565e1c74d914e0eab2 (patch)
treee583c1f70e71c2855126f4faafcb3b28a5161d5d /data/CMakeLists.txt
parent231253beff97ce9d81d63ee437b833cc73ed1142 (diff)
downloadshiboken-e87fbe13223a7c53404846565e1c74d914e0eab2.tar.gz
shiboken-e87fbe13223a7c53404846565e1c74d914e0eab2.tar.xz
shiboken-e87fbe13223a7c53404846565e1c74d914e0eab2.zip
Use CMAKE_<CONFIG>_POSTFIX on config files, used for cmake and pkgconfig.
Fixes bug #286. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r--data/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 85c9d6a9..9ad9381d 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1,3 +1,9 @@
+if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(LIBRARY_OUTPUT_SUFFIX ${CMAKE_DEBUG_POSTFIX})
+else()
+ set(LIBRARY_OUTPUT_SUFFIX ${CMAKE_RELEASE_POSTFIX})
+endif()
+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ShibokenConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/ShibokenConfig.cmake" @ONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ShibokenConfigVersion.cmake.in"