Skip to content

Conversation

@jhidalgocarrio
Copy link

This PR does:

  1. option to have a dynamic library. A static library is by default as it was.
    cmake .. -DDSO_BUILD_STATIC_LIBRARY=OFF
  2. Generation of dso.pc for pkgconfig from dso.pc.in
  3. Installation of missing files and using cmake variables.

set(EXECUTABLE_OUTPUT_PATH bin)
set(LIBRARY_OUTPUT_PATH lib)
set(INCLUDE_OUTPUT_PATH include/dso)
set(CMAKE_OUTPUT_PATH ${LIBRARY_OUTPUT_PATH}/cmake/dso)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMAKE_OUTPUT_PATH seems unused. Did you have plans to include a DSOConfig.cmake DSOConfigVersion.cmake as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In principle I don't plan to create those files right now but it can be done in a following step.
Are you suggesting to remove CMAKE_OUTPUT_PATH in order to merge this PR?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was mostly just wondering why it is there, if it is unused.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Good question. I think is because I had in mind to create a FindDSO.cmake file (sorry it was some time ago).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants