Re: [CMake] Incremental linking and Intel fortan

2012-09-05 Thread Alexander Ivanov
Sorry for delay... I checked that setting CMAKE_EXE_LINKER_FLAGS without CACHE attribute doesnt make a change. But if I switched to NMake then all things started to work. Incremental linking is turned off, traceback works. Exactly the same CMakeLists.txt produces wrong project for VS. What do you

Re: [CMake] Incremental linking and Intel fortan

2012-09-04 Thread Petr Kmoch
One more thing I noticed - CMAKE_EXE_LINKER_FLAGS is normally not a cache variable, and having both a cache and non-cache var of the same name can have weird consequences. Maybe try just setting it without CACHE STRING ... If that doesn't help, can you generate a different buildsystem (perhaps

Re: [CMake] Incremental linking and Intel fortan

2012-09-03 Thread Petr Kmoch
Hi Alexander. CMAKE_EXE_LINKER_FLAGS and similar variables can only be modified after a call to PROJECT() (the PROJECT() calls sets them up to some defaults). See if this fixes your issue. Petr On Fri, Aug 31, 2012 at 8:47 PM, Alexander Ivanov alexander.nik.iva...@gmail.com wrote: Hello all!

Re: [CMake] Incremental linking and Intel fortan

2012-09-03 Thread Alexander Ivanov
Hi Petr, Unfortunately it doesn't. I changed the sample as following but intel fortran ignores incremental linking setting. cmake_minimum_required(VERSION 2.8) project(TestF90 Fortran) set(CMAKE_EXE_LINKER_FLAGS /INCREMENTAL:NO CACHE STRING EXE_LINKER_FLAGS FORCE)

[CMake] Incremental linking and Intel fortan

2012-08-31 Thread Alexander Ivanov
Hello all! I am trying to adopt cmake for fortran based project. This is my first CMakeLists.txt for fortran. CMAKE_MINIMUM_REQUIRED(VERSION 2.8) SET(CMAKE_EXE_LINKER_FLAGS /INCREMENTAL:NO CACHE STRING EXE_LINKER_FLAGS FORCE) PROJECT(TestF90 Fortran) ADD_EXECUTABLE (TestF90_EXE main.f90)