-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
CMake: Update FindZLIB_NG For Target #541
Conversation
68fad02
to
fcc0313
Compare
Generate an import target to bring `FindZLIB_NG.cmake` up to par with the CMake-default shipped `FindZLIB.cmake`.
fcc0313
to
a8dec57
Compare
@FrancescAlted finished now :) |
Ok. The |
Hi @FrancescAlted, Yes, let me get into this: All the target_link_libraries(our_target PUBLIC dependency) sets not only the linker libs but also the include paths, defines, etc. if The prefix
In #537, I assumed that CMake ships a As a side note, since we ship a
Absolutely, that is the fix for building C-Blosc2 w/ external ZLIB-NG. Here are a few more resources if you like to dig deeper:
Let me know if you like have more questions! |
@ax3l , many thanks for such a detailed explanation! I'm not that experienced in cmake science, so it is great that somebody more knowledgeable give us a hand to modernize these parts. (BTW, we already have a book called "Modern CMake for C++ ", and it is time for us to have a serious look into it). Thanks again, we really appreciate your help. |
Thank you for the kind words, I am glad to help. I am building a relatively large software stack downstream (large-scale HPC simulations and data science). Thus, anything that makes my builds easier to maintain, simplifies work with package managers, and/or helps with dependency propagation in fully shared/static builds makes my life easier 😃 |
Generate an import target to bring
FindZLIB_NG.cmake
up to par with the CMake-default shippedFindZLIB.cmake
.Follow-up to #537 for external ZLIB-NG dependencies.
Seen in conda-forge/c-blosc2-feedstock#42