MantisBT - CMake
View Issue Details
0010784CMakeCMakepublic2010-06-01 09:562016-06-10 14:31
Stefan Vogelsang 
Bill Hoffman 
normalmajoralways
closedmoved 
Apple MacMac OSX10.6.3, 10.5.3
CMake-2-8 
 
0010784: paramters from CMakeLists.txt ignored under Mac
I setup some compile flags with ADD_DEFENITIONS(). These work fine under Windows and Linux while calling cmake <dir to project file>. Building our software for mac osx these defines are ignored, even setting up the CMAKE_VERBOSE_MAKEFILE is not possible but the source files are configured correctly?!?

I attached a small CMakeLists.txt as a test case, all source and build configurations are removed.

I tried Mac OS 10.6.3 and 10.5.8.
I also tested with cmake 2.8.0 and 2.8.1.
1.) create dir
2.) copy CMakeLists.txt
3.) ccmake <project-file> or cmake-gui <project-file>
4.) check the given parameters against the values in the given project file
No tags attached.
txt CMakeLists.txt (139) 2010-06-01 09:56
https://public.kitware.com/Bug/file/3156/CMakeLists.txt
tgz test2.tgz (186,326) 2010-06-02 10:57
https://public.kitware.com/Bug/file/3161/test2.tgz
Issue History
2010-06-01 09:56Stefan VogelsangNew Issue
2010-06-01 09:56Stefan VogelsangFile Added: CMakeLists.txt
2010-06-01 11:58Bill HoffmanNote Added: 0020883
2010-06-01 11:58Bill HoffmanStatusnew => assigned
2010-06-01 11:58Bill HoffmanAssigned To => Bill Hoffman
2010-06-02 10:57Stefan VogelsangNote Added: 0020898
2010-06-02 10:57Stefan VogelsangFile Added: test2.tgz
2010-06-08 04:38Stefan VogelsangNote Added: 0020944
2016-06-10 14:28Kitware RobotNote Added: 0041708
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0020883)
Bill Hoffman   
2010-06-01 11:58   
The attached cmake file does not build anything? So, what do you expect it to show?
(0020898)
Stefan Vogelsang   
2010-06-02 10:57   
yes i removed the build stuff...

I expect to see that CMAKE_VERBOSE_MAKEFILE is set to ON when I call cmake-gui on the CMakeLists.txt directory (turn on advanced view) which is off, also the custom build flag should be set. This seems to be a bug for its own.

I attached test2.tgz

- please extract
- cd <local place>/test2/generate
- call cmake ../TiCPP/TiCPP/projects/

since the verbose output is on and the flag -DTIXML_USE_STL is set
you should be able to observe that :

- there are a few verbose gcc calls on the commandline
- which include the -DTIXML_USE_STL within the c++ calls

both doesn't happen on my macs, while linux and windows work well
(0020944)
Stefan Vogelsang   
2010-06-08 04:38   
did you manage to reproduce the problem?
(0041708)
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.