View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009621CMakeModulespublic2009-09-30 05:132009-10-14 18:16
Reporterjmcm 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0009621: PRINT_DISABLED_FEATURES() prints list of enabled features under specific conditions
DescriptionCmakeLists.txt contains the following sequence of commands:
...
PRINT_ENABLED_FEATURES()
PRINT_DISABLED_FEATURES()
...
In case that all checked for features are available, i.e. the list of disabled features is empty, it will print the whole list of features.
If at least one feature is disabled, it will print the correct list of disabled features. If there is no preceding PRINT_ENABLED_FEATURES() statement, it will correctly print an empty list.
Additional Informationcmake 2.6.2
Module: FeatureSummary
Linux (openSUSE 11.1)
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (171 bytes) 2009-09-30 15:29 [Show Content]

 Relationships

  Notes
(0017837)
Bill Hoffman (manager)
2009-09-30 09:36

I am not sure what you are asking for here?
(0017839)
jmcm (reporter)
2009-09-30 09:52

A fix to PRINT_DISABLED_FEATURES() so it doesn't print the list of all (or enabled) features under the circumstances mentioned above.
(0017853)
Alex Neundorf (developer)
2009-09-30 15:30

I can't reproduce the problem.
Please put the attached CMakeLists.txt in a directory and run cmake on it.
It will search for libjpeg, libpng and libz. All three are available and found on my system. This is what I get:

...
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found JPEG: /usr/lib/libjpeg.so
-- Found ZLIB: /usr/lib/libz.so
-- Found PNG: /usr/lib/libpng.so
-- Enabled features:
JPEG
ZLIB
PNG

-- Disabled features:

-- Configuring done
-- Generating done


The list of disabled features is empty here.
How can I reproduce your problem ?

Alex
(0017990)
Alex Neundorf (developer)
2009-10-06 14:32

Do you still have this problem ?
I can't reproduce it here.

Alex
(0018073)
Alex Neundorf (developer)
2009-10-14 18:16

I was able to reproduce this bug with cmake 2.6.2. It seems the behaviour of GET_PROPERTY( ... GLOBAL ...) has changed slightly to 2.8, because with 2.8.0 I could not reproduce the problem.

Nevertheless I committed a small change to FeatureSummary.cmake to cvs HEAD, which now uses FUNCTION() instead of MACRO().
If you replace the FeatureSummary.cmake file from your 2.6.2 installation with the one from current cvs HEAD, it will also work with 2.6.2.
http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FeatureSummary.cmake?root=CMake&view=log [^]

Alex

 Issue History
Date Modified Username Field Change
2009-09-30 05:13 jmcm New Issue
2009-09-30 09:36 Bill Hoffman Status new => assigned
2009-09-30 09:36 Bill Hoffman Assigned To => Bill Hoffman
2009-09-30 09:36 Bill Hoffman Note Added: 0017837
2009-09-30 09:52 jmcm Note Added: 0017839
2009-09-30 12:29 Bill Hoffman Assigned To Bill Hoffman => Alex Neundorf
2009-09-30 15:29 Alex Neundorf File Added: CMakeLists.txt
2009-09-30 15:30 Alex Neundorf Note Added: 0017853
2009-10-06 14:32 Alex Neundorf Note Added: 0017990
2009-10-14 18:16 Alex Neundorf Note Added: 0018073
2009-10-14 18:16 Alex Neundorf Status assigned => closed
2009-10-14 18:16 Alex Neundorf Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team