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

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