diff --git a/CMakeLists.txt b/CMakeLists.txt index c53569df..8e5973c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,7 +144,7 @@ export(TARGETS apriltag # install pkgconfig file configure_file(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY) -install(FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc" +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")