Skip to content
Snippets Groups Projects
Commit 428c5d16 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Remove parentheses from dune-*.pc.

This fixes FS#1324.
Thanks to Arne Morten Kvarving for the patch.
parent 892d2043
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,18 @@ set(VERSION ${DUNE_MOD_VERSION})
set(CC ${CMAKE_C_COMPILER})
set(CXX "${CMAKE_CXX_COMPILER} ${CXX_STD11_FLAGS}")
set(REQUIRES ${DUNE_DEPENDS})
if(DUNE_DEPENDS)
foreach(_DUNE_DEPEND ${DUNE_DEPENDS})
string(REGEX REPLACE "\\(" "" REQF1 ${_DUNE_DEPEND})
string(REGEX REPLACE "\\)" "" LR ${REQF1})
if(REQUIRES)
set(REQUIRES "${REQUIRES} ${LR}")
else()
set(REQUIRES ${LR})
endif(REQUIRES)
endforeach(_DUNE_DEPEND ${DUNE_DEPENDS})
endif(DUNE_DEPENDS)
#create pkg-config file
configure_file(
${PROJECT_SOURCE_DIR}/${DUNE_MOD_NAME}.pc.in
......@@ -24,7 +35,7 @@ configure_file(
)
# install pkgconfig file
if(PKG_CONFIG_FOUND )
if(PKG_CONFIG_FOUND)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DUNE_MOD_NAME}.pc
DESTINATION lib/pkgconfig)
endif(PKG_CONFIG_FOUND)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment