Skip to content

Commit

Permalink
Merge pull request #319 from EwingKang/fix_cmake_as_submodule
Browse files Browse the repository at this point in the history
Improve CMakeLists config path by using CMAKE_CURRENT_BINARY_DIR
  • Loading branch information
christian-rauch authored Mar 5, 2024
2 parents 51466ec + 64e9040 commit e6cd3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit e6cd3c7

Please sign in to comment.