diff --git a/CMakeLists.txt b/CMakeLists.txt index d5d0ae34..1afcc257 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,7 +157,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 lib/pkgconfig ) endif()