[CMake] compiler flags passed to cmake appear doubled at build time
T.Sariyski
tzsariysk at gmail.com
Fri Feb 24 19:17:39 EST 2017
Hi,
For some reason, compiler flags passed to cmake, appear twice at build time.
I have a message line at the bottom of the cmakelist file, and it reports
the compilers flag as expected.
cmake \
-G "Eclipse CDT4 - Unix Makefiles" \
-D MPI=ON \
-D CMAKE_Fortran_FLAGS="-132 -cpp -g -O0 -DIFORT" \
..
-- CMAKE_Fortran_FLAGS = -DMPI -132 -cpp -g -O0 -DIFORT
At build time, these flags are doubled:
make
[ 0%] Building Fortran object
src/modules/CMakeFiles/modules.dir/constants.F90.o
cd /users/tesari/my/build.intel/src/modules &&
/opt/mpi/RH6/intel_PS_XE_2013/openmpi-1.6/bin/mpif90 -DMPI -132 -cpp -g
-O0 -DIFORT -132 -cpp -g -O0 -DIFORT .
This is not a critical error, I am just curious what I am doing wrong.
Thanks in advance,
Ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170224/95085d5b/attachment.html>
More information about the CMake
mailing list