[cmake-developers] PLplot contract test
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Fri Oct 27 12:36:35 EDT 2017
On 2017-10-27 07:02-0400 Brad King wrote:
> On 10/26/2017 09:58 PM, Alan W. Irwin wrote:
>> However, one of the deficiencies of this third method is the
>> bootstrap script only pays attention to CXXFLAGS and CFLAGS when
>> setting compile flags for building the preliminary version of CMake
[...]
> You could do this to apply flags to bootstrap and configuration
> steps but not to the tests:
>
> ```
> set(ENV{CXXFLAGS} "-O3 -DNDEBUG")
> set(ENV{CFLAGS} "-O3 -DNDEBUG")
> set(CTEST_BUILD_CONFIGURATION "")
> macro(dashboard_hook_build)
> unset(ENV{CXXFLAGS})
> unset(ENV{CFLAGS})
> endmacro()
> ```
Thanks for that idea which I have adopted (using
set(CTEST_BUILD_CONFIGURATION "Release")). It generates perfect
dashboards (see the Experimental raven result for today).
Should at least some of these considerations concerning CXXFLAGS and
CFLAGS (e.g., they normally should be unset to assure a standard build
configuration corresponding to CTEST_BUILD_CONFIGURATION) be
documented in comments in cmake_common.cmake?
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the cmake-developers
mailing list