View Issue Details [ Jump to Notes ] [ Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013448CMakeCMakepublic2012-07-31 21:042012-12-03 07:46
ReporterLynnKaye 
Assigned ToDavid Cole 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSLinux 2.6.18-164.el5 x86_64OS Version
Product VersionCMake 2.8.8 
Target VersionFixed in VersionCMake 2.8.8 
Summary0013448: Cannot detect extensions of cpp files
DescriptionWhen I try to go over the tutorial, I write

add_executable(Tutorial tutorial.cxx)

while I have a tutorial.cpp file. When I run cmake, it says

Cannot find source file:

    tutorial.cxx

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx

When I change the file extension from .cpp to .cxx, it builds successfully. Apparently, it fails to find the tutorial.cpp
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0030155)
David Cole (manager)
2012-07-31 23:15

This is not really misbehaving.... The 2nd argument to add_executable is a filename.

If your file is named t.cpp then list t.cpp as the file, if cxx then cxx.

Don't explicitly list one and expect the other to work.
(0031800)
David Cole (manager)
2012-12-03 07:46

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-07-31 21:04 LynnKaye New Issue
2012-07-31 23:12 David Cole Assigned To => David Cole
2012-07-31 23:12 David Cole Status new => assigned
2012-07-31 23:15 David Cole Note Added: 0030155
2012-07-31 23:15 David Cole Status assigned => resolved
2012-07-31 23:15 David Cole Fixed in Version => CMake 2.8.8
2012-07-31 23:15 David Cole Resolution open => no change required
2012-12-03 07:46 David Cole Note Added: 0031800
2012-12-03 07:46 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team