-
Notifications
You must be signed in to change notification settings - Fork 60
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
In-source build with CMake #788
Comments
I agree, it should do it automatically, just setting |
I may try playing with this. Do you know why it gets invoked twice in the build script? |
Yes --- the first time is the configure phase, the second time is the build phase ( |
Got it! Thanks a lot for clarifying that. I will try to merge setup_builddir and configure. |
I created a pull request here: #790 |
I'm trying to add the package Armadillo to HashStack. Here is how the package looks so far:
I was able to build this correctly in Mac OS X Yosemite.
However, after reading the README file in Armadillo, I noticed they recommend performing an in-source build because out-of-source is not supported. I then attempted to modify my package in accordance with the
cmake_package.yaml
package to allow for an out-of-source build, but encountered some difficulties.Using the default
cmake_package.yaml
configuration, I get the following build script:First of all, why does
cmake
get invoked twice?Second, there seems to be an inconsistency between the
setup_builddir
build stage and theconfigure
build stage. Insetup_builddir
I can get rid of the bash handler, and prevent the directory_build
from being created. However, thenbuild_in_source
in theconfigure
build stage must be set to true as well, otherwise everything breaks.I think
setup_builddir
andconfigure
should be merged. Ifbuild_in_source
is set to true, then create a directory and build from there.The text was updated successfully, but these errors were encountered: