Maybe I've been misunderstanding the difference between environmental
variables and cmake cache entries. When I turn Maven's debugging on I
can see that the environmental variable is set correctly. I can also
see that cmake is called without it; cmake is called like:
[DEBUG] command-line:
[/home/kevin/Workspace/openjpeg/target/dependency/cmake/bin/cmake,
/home/kevin/Workspace/openjpeg, -G, Unix Makefiles]
I try that exact command putting the variable in front as a system
variable (and it still doesn't work):
BUILD_THIRDPARTY=on \
/home/kevin/Workspace/openjpeg/target/dependency/cmake/bin/cmake \
/home/kevin/Workspace/openjpeg -G "Unix Makefiles"
But when I put it in the command line as a "cache entry" (that's what
the man page calls it) it works:
/home/kevin/Workspace/openjpeg/target/dependency/cmake/bin/cmake \
-DBUILD_THIRDPARTY=on /home/kevin/Workspace/openjpeg \
-G "Unix Makefiles"
So, perhaps my question is does the plugin provide a way to supply a
cache entry on the command line? In Java -D would be a system
property but it looks like it means something different to cmake
(which I'm not very familiar with)?
Thanks,
Kevin