Skip to content

Fix package config install target#367

Merged
nmoinvaz merged 2 commits into
zlib-ng:masterfrom
mschmieder:fix-package-config-install-target
Feb 19, 2019
Merged

Fix package config install target#367
nmoinvaz merged 2 commits into
zlib-ng:masterfrom
mschmieder:fix-package-config-install-target

Conversation

@mschmieder

Copy link
Copy Markdown
Contributor

@nmoinvaz sorry, but I screwed up the last fix - it actually did not fix the underlying issue

I removed the complete if...end statement since this is not necessary, CMake will take care of the generation.
To make it up to you, I also removed the unnecessary trailing spaces :)

Please consider upgrading your travis CI to also do the installation step in order to figure these kinds of problems out in the first place.

@nmoinvaz nmoinvaz merged commit 35ff149 into zlib-ng:master Feb 19, 2019
@nmoinvaz

Copy link
Copy Markdown
Member

I was wondering about that EXISTS statement because I saw zlib didn't have one. But I didn't think it hurt anything. Thanks again for the fixes!

@nmoinvaz

nmoinvaz commented Feb 20, 2019

Copy link
Copy Markdown
Member

Actually i think it should be: if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/minizip.pc.cmakein) where it would only configure the file if it exists in the source tree. 4f15ac6

@mschmieder

Copy link
Copy Markdown
Contributor Author

I wouldn’t do that - why wouldn’t the file be there? It’s part of your repository as all the other sources are, right? So it’s a „fact“ and nothing „variable/condionally generated“

Also the current source dir reference is not needed since the relative path is easier to read and maintain.

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.

3 participants