[Dune] [Dune-Commit] dune-common r6651 - branches/cmake/cmake/modules

Christian Engwer christian.engwer at uni-muenster.de
Mon Apr 23 17:31:58 CEST 2012


> Cmake works different in this regard. Passing flags to make directly
> does not work. One has to pass them to cmake configure or change the
> cache and then reconfigure. In both cases the -std flags gets added to
> the compiler flags in the configure stage.
> 
> CMake distinguishes the variables by type. The compiler is a file
> path. It seems unnatural to put a flag there. (I think I even tried
> that and it did not work.)

OK, but it really confuses me. How does cmake prevent me from
overwriting variables on the command line?

usually I can call

make CXXFLAGS="-g -Wall -O0"

what would cmake do in this case? Doesn't it just generate Makefiles?

Christian





More information about the Dune mailing list