Why are you not using conda-build here? Anaconda Distro and
conda-forge build countless CMake projects. It handles so much extra
stuff on top of building (DSO verification, rpath rewriting, more). If
your end goal is not conda packages then you can untar most sets of
conda-packages to make working
Thanks for the links.
The problem of setting CMAKE_BUILD_RPATH to $CONDA_PREFIX/lib is that
for binaries and libraries in the build tree, the list of RPATH
locations will be in the wrong order: the dependencies library path
will be first, and then the build tree. This will break the unit tests
if
Hi Michael, thanks for reply!
Essentially *I don't want to artificially couple app executable and tool
shared library*
by defining repo project with both targets.
I have three main motivations:
1) I want to be able to load into an IDE (for example CLion, Visual Studio,
Qt Creator)
only one targ
it’s not clear to me why you are trying to do this multiple project thing…I
mean why not just?:
project(myrepo)
add_subdirectory(util)
add_subdirectory(tool)
add_subdirectory(app)
and then if you only want to build util for instance:
cd build && cmake .. && cmake --build . --target=util
is the
See also:
https://gitlab.kitware.com/cmake/cmake/merge_requests/207
https://gitlab.kitware.com/cmake/cmake/issues/17483 (looks semi-related)
Ray Donnelly, who filed those issues, maintains the Anaconda compiler
toolchain -- so you are in good company hitting this issue. It looks like
some conda
The RPATH is not included when using Anaconda because CMake considers the
Anaconda lib path to be an implicit link directory (as reported by the
compiler). Look at `$build_dir/CMakeFiles/CMakeOutput.log` in the section
about "implicit link info".
The simplest work-around is to set BUILD_RPATH manu
Dear admin,
I am trying to build a project that is a open source and have a package on
the website.
The required binaries are installed by macports on my macbook pro with
OSX10.13.6 (High Sierra).
When I tried to cmake the project, I got the output message as:
es2039:build maomao$ cmake ..
-- Co