-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Use CMake build for Linux as well #106
Comments
I think that is not an issue, in your case you can give some hints to
or you can use
|
I have no problem with finding the packages. The issue is more that they are built in different ways on Windows and Linux.
I have never had any issue with CMake and virtual environment. As long as one use
when invoking CMake from the recipe that truly chroot CMake to the env. |
I faced some problems with One person who may give you more explanation about it, is @mingwandroid |
I do not think this works for finding packages in the sysroot. CMake needs to actually be taught how to figure out sysroots for itself to be honest. It really is a very friendly build system. It will look all over your filesystem in countless folders to find things you might want to include or link to. Really very friendly indeed. |
I don't know if CMake is to friendly or not, but I agree that there is a lot of variables that influence the search paths! According to the doc of For sysroot, you have CMAKE_SYSROOT, but is it really necessary to set it? CMAKE_FIND_NO_INSTALL_PREFIX is another variable that can be used, but in the case of conda packages, it should not be necessary. @marcelotrevisani Could you give me a link to the issue reported in Kitware bug tracker, please? |
Also |
I think this problem would not happen if HDF5 were being built with CMake: conda-forge/libitk-feedstock#7 |
@tadeu Thanks for adding grist to the mill! @marcelotrevisani I'm willing to contribute a PR, would you be OK with that? |
Sorry for my delay |
Some issues which I found in the past regarding virtual environments in cmake are: there are still more and more if you search about it |
I see. It is not clear to me though if these issues are real when running |
Also those issues are for |
@sdebionne did you have any success on this front? I'm being bitten by this as well: I'm building my lib with CMake on Windows successfully, but I don't the corresponding |
Actually, the problems are also related to |
FWIW as of CMake 3.19 the |
If CMake is used for dowstream projects, find_package(HDF5) is inconsistant across platform.
find_package(HDF5)
uses the hdf5-config.cmake that exports an HDF5 target. Using HDF5 is simple:target_link_libraries(my_program hdf5::hdf5-static )
find_package(HDF5)
works the old way and uses FindHDF5.cmake which does not export a target. Using HDF5 requires a more verbose CMake code:Is there any reasons not to use CMake for both platforms in the first place?
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: