View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014150CMakeCMakepublic2013-05-16 13:202016-06-10 14:31
Reporterjose espina 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformIntel i7 64 bitsOSFedoraOS Version17 64 bits
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0014150: CMake ignores directory called "test" in add_subdirectory function
DescriptionIn my team we have a module called "test" (is not a good name, ok...) and we have a big CMakeList.txt that include the others module.

The problem is that the module inside "test" directory is omitted by the big CMakeList.txt
Steps To ReproduceCreate a CMakeList.txt in a parent directory and another one inside a subdirectory called "test" and run "cmake"

You will see that the compilation of the files inside "test" is omitted
Additional InformationOur project is done in Fortran.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0033071)
Brad King (manager)
2013-05-16 13:39

The file should be called CMakeLists.txt, not CMakeList.txt.

If you need further help please ask on the mailing list:

 http://www.cmake.org/mailman/listinfo/cmake [^]
(0033077)
jose espina (reporter)
2013-05-16 14:28

That was not the problem. Is wierd but if I put this in the CMakeLists.txt:

(...)
ADD_LIBRARY(test STATIC test_libr.f90)
(...)

Doesn't work. But if I change the name of the target

ADD_LIBRARY(another_thing STATIC test_libr.f90)

Works
(0033078)
Brad King (manager)
2013-05-16 14:37

The target name "test" conflicts with CMake's built-in "make test" target.
(0042281)
Kitware Robot (administrator)
2016-06-10 14:28

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.

 Issue History
Date Modified Username Field Change
2013-05-16 13:20 jose espina New Issue
2013-05-16 13:39 Brad King Note Added: 0033071
2013-05-16 13:39 Brad King Status new => resolved
2013-05-16 13:39 Brad King Resolution open => no change required
2013-05-16 14:28 jose espina Note Added: 0033077
2013-05-16 14:28 jose espina Status resolved => feedback
2013-05-16 14:28 jose espina Resolution no change required => reopened
2013-05-16 14:37 Brad King Note Added: 0033078
2016-06-10 14:28 Kitware Robot Note Added: 0042281
2016-06-10 14:28 Kitware Robot Status feedback => resolved
2016-06-10 14:28 Kitware Robot Resolution reopened => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team