Skip to content

add postfix for different types of builds#80

Open
mitkof6 wants to merge 1 commit intodocopt:masterfrom
mitkof6:distinguish_builds
Open

add postfix for different types of builds#80
mitkof6 wants to merge 1 commit intodocopt:masterfrom
mitkof6:distinguish_builds

Conversation

@mitkof6
Copy link

@mitkof6 mitkof6 commented Jun 23, 2017

Currently when docopt is installed for different build types the last build overrides the libraries. This PR adds a default postfix based on the build type.

issue

@jaredgrubb
Copy link
Member

I'm not experienced with cmake (one day I'll learn it), so I'd like to have someone volunteer to look at this?

@mitkof6
Copy link
Author

mitkof6 commented Jun 24, 2017

Hi @jaredgrubb. The set command assigns a value to the variable. The postfix variables are used when the library is build so you have something like this docopt_[d|r|rd|md].[lib|dll|so]. The mark_as advanced command hides the cache variable under the advanced option, which can be easily accessed and changed during configuration. Finally, when you install the library the different builds are distinguished by the postfix. Since you have correctly configured the install process a separate cmake target is constructed for each build type so that the library can find the corresponding files and link them correctly when used by a third party.

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