diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c91ee67..4784466b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()