Skip to content

Commit

Permalink
pkgconfig: Fix path relocation for mingw
Browse files Browse the repository at this point in the history
Just separate the path to prefix and includedir variables.
  • Loading branch information
Biswa96 committed Jan 5, 2022
1 parent 4fc7b3d commit ec83b7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ endif()
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/pkg-config.pc.in"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
@ONLY
)

##
Expand Down
9 changes: 6 additions & 3 deletions cmake/pkg-config.pc.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Name: ${PROJECT_NAME}
prefix=@CMAKE_INSTALL_PREFIX@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Name: @PROJECT_NAME@
Description: JSON for Modern C++
Version: ${PROJECT_VERSION}
Cflags: -I${CMAKE_INSTALL_FULL_INCLUDEDIR}
Version: @PROJECT_VERSION@
Cflags: -I${includedir}

0 comments on commit ec83b7b

Please sign in to comment.