Skip to content

Commit

Permalink
pkgconfig: add missing PTEX_DYNAMIC_OUTPUT_NAME variable
Browse files Browse the repository at this point in the history
Signed-off-by: David Aguilar <[email protected]>
  • Loading branch information
davvid committed Jul 25, 2023
1 parent 6d020d7 commit 5be2cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,3 @@ if (PTEX_BUILD_DOCS)
add_subdirectory(src/doc)
endif ()
add_subdirectory(src/build)

2 changes: 2 additions & 0 deletions src/build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ else()
endif()

string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWERCASE)

get_target_property(PTEX_DYNAMIC_OUTPUT_NAME Ptex_dynamic OUTPUT_NAME)
configure_file("${PROJECT_NAME_LOWERCASE}.pc.in" "${PROJECT_NAME_LOWERCASE}.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME_LOWERCASE}.pc"
COMPONENT devel DESTINATION share/pkgconfig)

0 comments on commit 5be2cab

Please sign in to comment.