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
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
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!
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)
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)