[CMake] Incremental linking and Intel fortan
Alexander Ivanov
alexander.nik.ivanov at gmail.com
Mon Sep 3 12:34:42 EDT 2012
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)
add_executable(TestF90_EXE main.f90)
Thanks,
Alexander
2012/9/3 Petr Kmoch <petr.kmoch at gmail.com>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120903/3af700ce/attachment.htm>
More information about the CMake
mailing list