MantisBT - CMake
View Issue Details
0008768CMakeCMakepublic2009-03-19 11:372016-06-10 14:30
Clinton Stimpson 
Bill Hoffman 
normalminoralways
closedmoved 
 
 
0008768: .F not in Source Files group with Visual Fortran
Fortran projects for Visual Studio put the .f under Source Files but leave the .F files at the root of the project tree.

Can we have both .F and .f in the Source Files folder?
No tags attached.
Issue History
2009-03-19 11:37Clinton StimpsonNew Issue
2009-03-22 22:00Bill HoffmanNote Added: 0015752
2009-03-22 22:00Bill HoffmanStatusnew => assigned
2009-03-22 22:00Bill HoffmanAssigned To => Bill Hoffman
2009-03-23 12:21Clinton StimpsonNote Added: 0015763
2016-06-10 14:27Kitware RobotNote Added: 0041519
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0015752)
Bill Hoffman   
2009-03-22 22:00   
I think the fix for this is in cmMakfile.cxx line 87:

#if defined(CMAKE_BUILD_WITH_CMAKE)
  this->AddSourceGroup("", "^.*$");
  this->AddSourceGroup
    ("Source Files",
     "\\.(C|M|c|c\\+\\+|cc|cpp|cxx|f|F|f90|for|fpp"
     "|ftn|m|mm|rc|def|r|odl|idl|hpj|bat)$");
  this->AddSourceGroup("Header Files",
                       "\\.(h|hh|h\\+\\+|hm|hpp|hxx|in|txx|inl)$");
  this->AddSourceGroup("CMake Rules", "\\.rule$");
  this->AddSourceGroup("Resources", "\\.plist$");
#endif

If you can build cmake, please try. Also, you can get around this with the source_group command.
(0015763)
Clinton Stimpson   
2009-03-23 12:21   
Adding "F" to that regex fixes it.
Thanks.
(0041519)
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.