Skip to content

Commit

Permalink
Merge pull request #65 from maz-1/master
Browse files Browse the repository at this point in the history
append debug suffix to pkgconfig link flag if needed
  • Loading branch information
jklimke authored Mar 8, 2022
2 parents ef9c239 + 9fc2adb commit 307f9e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions sources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ INSTALL(
${INCLUDE_INSTALL_DIR}
)

if (LIBCITYGML_DEBUG_POSTFIX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
set(LIBCITYGML_POSTFIX ${CMAKE_DEBUG_POSTFIX})
else()
set(LIBCITYGML_POSTFIX "")
endif()

configure_file(citygml.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/citygml.pc)

Expand Down
2 changes: 1 addition & 1 deletion sources/citygml.pc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Name: citygml
Description: Read and Write CityGML files
Requires: libxml-2.0 glu
Version: ${META_VERSION}
Libs: -L${LIB_INSTALL_DIR} -lcitygml
Libs: -L${LIB_INSTALL_DIR} -lcitygml${LIBCITYGML_POSTFIX}
Cflags: -I${INCLUDE_INSTALL_DIR}

0 comments on commit 307f9e5

Please sign in to comment.