View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014460CMakeCMakepublic2013-10-04 11:272016-06-10 14:31
ReporterSebastian Freundt 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.8 
Target VersionFixed in Version 
Summary0014460: AC_ARG_VARs ignored in CMAKE_FIND_PACKAGE macro in cmake.m4
DescriptionIn cmake.m4:

    31 if test -n "$1[]_$2[]FLAGS"; then

and

    34 if test -n "$1[]_LIBS"; then

are completely the opposite of what should happen.

The logic must be: if <PKG>_CFLAGS is set, then do NOT invoke cmake --find-package but instead use the user-defined value.
If <PKG>_CFLAGS is NOT set, then DO invoke cmake.
Additional InformationOne way to fix this quickly is:

-if test -n "$1[]_$2[]FLAGS"; then
+if test -n "$1[]_$2[]FLAGS"; then

-if test -n "$1[]_LIBS"; then
+if test -z "$1[]_LIBS"; then

i.e. to replace test -n by test -z
TagsNo tags attached.
Attached Files

 Relationships
child of 0014676closedAlex Neundorf cmake --find-package summary ticket 

  Notes
(0034892)
Alex Neundorf (developer)
2014-01-01 12:23

I won't work on this in the near future.
(0042384)
Kitware Robot (administrator)
2016-06-10 14:29

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-10-04 11:27 Sebastian Freundt New Issue
2013-10-04 11:39 Brad King Assigned To => Alex Neundorf
2013-10-04 11:39 Brad King Status new => assigned
2014-01-01 12:23 Alex Neundorf Relationship added child of 0014676
2014-01-01 12:23 Alex Neundorf Note Added: 0034892
2014-01-01 12:23 Alex Neundorf Status assigned => backlog
2016-06-10 14:29 Kitware Robot Note Added: 0042384
2016-06-10 14:29 Kitware Robot Status backlog => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team