Skip to content

Commit

Permalink
Merge pull request #2318 from eli-schwartz/installfix
Browse files Browse the repository at this point in the history
cmake: install pkg-config file relative to current_binary_dir
  • Loading branch information
nlohmann authored Jul 28, 2020
2 parents b3da8b3 + 7d01a9e commit 1b8efed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ endif()
DESTINATION ${NLOHMANN_JSON_CONFIG_INSTALL_DIR}
)
install(
FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc"
FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
DESTINATION ${NLOHMANN_JSON_PKGCONFIG_INSTALL_DIR}
)
endif()

0 comments on commit 1b8efed

Please sign in to comment.