Closed xtaran closed 5 years ago
Hi @xtaran !
I'd rather not support in tree building (cmake .
) because it is not recommended by cmake best practices. So please don't do that and use cmake ../src
or equivalent.
Out-of-tree building with cmake ../src && make && make test
indeed works. Not that I understand it, since I consider out-of-tree building the more complicated special case. But then again, I still don't really understand how CMake works. So let's close this. Thanks for the hint.
This fails for quite a while for me when working directly inside a git checkout of this repository with in-tree building, but I never bothered, because it works fine in the Debian package where
debhelper
seems to to some out-of-tree building CMake magic to make it work.But now, when trying to test whether the fix for #24 works, I digged a little bit deeper into that. (I want to refer to this issue in my reply to #24, hence this new issue before I reply to #24.) Here's what I tried:
This fails more or less immediately. Then I tried
make check
(common in the autoconf world):This does partially what I would have expected from
make test
: It prepares the installation of wml into thewml_test/tests/installation
tree, but seems to fail to find some kind ofcheck
target afterwards. Hence, what makes the test suite pass for me, is the following sequence:So from my point of view, what the
check
target does in configuring needs to be copied into thetest
target to make the above work.Please tell me if the above is not how it is meant to be used. (I had to guess since
INSTALL
still has some TODO markers with regards to how to run the test suite.)