Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-tool only for shared library build #754

Merged
merged 3 commits into from
Oct 22, 2018
Merged

nix-tool only for shared library build #754

merged 3 commits into from
Oct 22, 2018

Conversation

jgrewe
Copy link
Member

@jgrewe jgrewe commented Oct 12, 2018

this pr is part of the nix-mx, brew installation problem solution. This pr:

  • disables the nix-tool build for the static build
  • renames the static lib under win to allow for installing shared and static lib
  • checks whether a pkgcfg file already exists, only if missing it is installed

We should be able to install static and shared lib in parallel without brew complaining about overwriting links 🤞

@jgrewe jgrewe requested a review from gicmo October 16, 2018 08:05

#pkg-config support
configure_file(${CMAKE_SOURCE_DIR}/nix.pc.in ${CMAKE_BINARY_DIR}/nix.pc)
install(FILES ${CMAKE_BINARY_DIR}/nix.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)

if(NOT EXISTS "${LIB_INSTALL_DIR}/pkgconfig/nix.pc")
Copy link
Member

Choose a reason for hiding this comment

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

hmm, if we wanna package libnixio (debian, fedora) and ship the static and non-static version, then this might now work, because you build in a build-root that is separate from there rest of the system.
Maybe better would be a config option?

@gicmo gicmo merged commit cf82659 into G-Node:1.4 Oct 22, 2018
@jgrewe jgrewe deleted the cmake branch October 22, 2018 13:34
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.

None yet

2 participants