diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-09-20 18:54:27 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:09 -0300 |
commit | 614bab3782a20d534f3b17ba35d69518a9ac73c3 (patch) | |
tree | fe076f8e7efa36317101b6b686ce388203ef0032 /data/CMakeLists.txt | |
parent | ed78ef787f52a9c5f7d791e3f02a853c88ad6e3f (diff) |
Use CMAKE_<CONFIG>_POSTFIX on config files, used for cmake and pkgconfig.
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.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 66b2f9677..b824e58a8 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,3 +1,10 @@ +if (CMAKE_BUILD_TYPE STREQUAL "Debug") + set(LIBRARY_OUTPUT_SUFFIX ${CMAKE_DEBUG_POSTFIX}) +else() + set(LIBRARY_OUTPUT_SUFFIX ${CMAKE_RELEASE_POSTFIX}) +endif() + + # create pkg-config file configure_file("${CMAKE_CURRENT_SOURCE_DIR}/apiextractor.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/apiextractor${apiextractor_SUFFIX}.pc" @ONLY) |