MantisBT - CMake
View Issue Details
0014150CMakeCMakepublic2013-05-16 13:202016-06-10 14:31
jose espina 
Kitware Robot 
normalminoralways
closedmoved 
Intel i7 64 bitsFedora17 64 bits
CMake 2.8.9 
 
0014150: CMake ignores directory called "test" in add_subdirectory function
In 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
Create 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
Our project is done in Fortran.
No tags attached.
Issue History
2013-05-16 13:20jose espinaNew Issue
2013-05-16 13:39Brad KingNote Added: 0033071
2013-05-16 13:39Brad KingStatusnew => resolved
2013-05-16 13:39Brad KingResolutionopen => no change required
2013-05-16 14:28jose espinaNote Added: 0033077
2013-05-16 14:28jose espinaStatusresolved => feedback
2013-05-16 14:28jose espinaResolutionno change required => reopened
2013-05-16 14:37Brad KingNote Added: 0033078
2016-06-10 14:28Kitware RobotNote Added: 0042281
2016-06-10 14:28Kitware RobotStatusfeedback => resolved
2016-06-10 14:28Kitware RobotResolutionreopened => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0033071)
Brad King   
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   
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   
2013-05-16 14:37   
The target name "test" conflicts with CMake's built-in "make test" target.
(0042281)
Kitware Robot   
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.