1
0
mirror of https://github.com/nlohmann/json synced 2024-11-27 06:10:06 +00:00

Merge pull request #2318 from eli-schwartz/installfix

cmake: install pkg-config file relative to current_binary_dir
This commit is contained in:
Niels Lohmann 2020-07-28 13:25:04 +02:00 committed by GitHub
commit 1b8efed06f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()