[CMake] ExternalProject_Add fails with gcc-4.9.3

2017-07-29 Thread T.Sariyski
cmake version 3.4.3 Hi, I have ExternalProject_Add (attached), which works with gcc-4.4.7, but fails with gcc-4.9.3: ... ... [100%] Performing build step for 'ep_netcdf' CMake Error at /scratch/tesari/build/cee/gnu.dbg/netcdf/src/ep_netcdf-stamp/ep_netcdf-build -DEBUG.cmake:16 (message):

[CMake] How to make a Fortran file dependent on #inclde files

2017-07-18 Thread T.Sariyski
Hi, I have a Fortran project with numerous #include files. When a #include file is changed, CMake does not detect the change, and does not rebuild the objects using this include file. In order to reflect the change, currently I ‘make clean; make’, which rebuilds the entire project. Is ther

[CMake] FW: CTest question

2017-05-18 Thread T.Sariyski
sers/tesari/kodiak/trunk/benchmark/Scripts/assert_case.py called with 3 arguments: 113: 1 /Users/tesari/build/gnu.dbg/CTEST/zamod/hskdk 113: 2 /Users/tesari/kodiak/trunk/CTEST/zamod/../GOLD/zamod/hskdk 113: 3 0 113: /Users/tesari/build/gnu.dbg/CTEST/zamod/hskdk does not exist! From

Re: [CMake] CTest question

2017-05-18 Thread T.Sariyski
ECUTE_PROCESS(COMMAND ${PROGRAM2} RESULT_VARIABLE status) IF(status) MESSAGE(SEND_ERROR "Executing \"${PROGRAM2}\" FAILED! status=${status}") ENDIF() From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Wednesday, May 17, 2017 10:54 PM To: T.S

[CMake] CTest question

2017-05-17 Thread T.Sariyski
Hi, I wonder what is the reason that sometimes ctest ends with numerous ‘Failed’ and ‘Timeout’, which ‘ctest –rerun-failed’ reports ‘Passed’. At times the number of these false failures is about one third. I guess that the problem is in the way I set my tests, but I have no clue where to loo

[CMake] compiler flags passed to cmake appear doubled at build time

2017-02-24 Thread T.Sariyski
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 -c