MantisBT - CMake
View Issue Details
0008067CMakeCMakepublic2008-11-10 00:512016-06-10 14:30
rory 
Bill Hoffman 
normalminoralways
closedmoved 
CMake-2-6 
 
0008067: Incorrect Default Flags with IFORT(10.1.025) and Visual Studio 2008
When I create a 64-bit Fortran library project in Windows it incorrectly sets the runtime libraries and optimization flags.

The runtime library is always set to "Multithreaded" even in debug mode.

Also the optimization flags are mixed up:
Debug Mode -> Maximize Speed
MinSizeRel -> Maximize Speed
Release -> Minimize Speed /01
ReleaseWithDebInfo -> Minimize Speed /01
Here is my CMakeLists.txt file:

enable_language( Fortran )

FILE(GLOB SOURCE_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
    "${CMAKE_CURRENT_SOURCE_DIR}/*.f")
    
add_library ( MyLib ${SOURCE_FILES} )

SET_TARGET_PROPERTIES(MyLib PROPERTIES COMPILE_FLAGS "/extend_source:132 /names:lowercase /assume:underscore" )
No tags attached.
Issue History
2008-11-10 00:51roryNew Issue
2009-01-29 14:32Bill HoffmanStatusnew => assigned
2009-01-29 14:32Bill HoffmanAssigned To => Bill Hoffman
2016-06-10 14:27Kitware RobotNote Added: 0041469
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0041469)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.