-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I may be missing something obvious but #cmakedefine01 does not appear to work with checks.
For example adding the following test to libbuild2-autoconf-tests/module/testscript results in the following failure:
: basics-cmakedefine01-with-check
:
mkdir build;
ln -s ../../bootstrap.build ../../root.build build/;
cat <<EOI >=config.h.cmake;
#cmakedefine01 zzz_TEST_DUMMY1_H
EOI
$* <<EOI &config.h &config.h.d;
./: h{config}: in{config.h.cmake}
EOI
cat config.h >>EOO
#define zzz_TEST_DUMMY1_H 1
EOO
test libbuild2-autoconf-tests/module/testscript{testscript}
libbuild2-autoconf-tests/module/testscript:229:1: error: process b exited with code 1
info: command line: b --no-default-options --serial-stop --silent --buildfile -
info: stderr: libbuild2-autoconf-tests/module/test/basics-cmakedefine01-with-check/stderr-n4
info: stdin: libbuild2-autoconf-tests/module/test/basics-cmakedefine01-with-check/stdin-n4
config.h.cmake:1: error: variable zzz_TEST_DUMMY1_H should be false/0 or true/1
info: test id: basics-cmakedefine01-with-check
info: while testing libbuild2-autoconf-tests/dir{module/}
info: while testing dir{libbuild2-autoconf-tests/}
info: failed to test dir{libbuild2-autoconf-tests/}
Metadata
Metadata
Assignees
Labels
No labels