CMake Config file causes warnings in CMake
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
insighttoolkit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The file ITKconfig.cmake installed by this package in /usr/lib/
IF("ON")
SET(ITK_LIBRARIES ....)
ENDIF("ON")
Having "ON" in a conditional statement is invalid CMake syntax and causes the following warning:
CMake Warning (dev) at /usr/lib/
given arguments:
"ON"
An argument named "ON" appears in a conditional statement. Policy CMP0012
is not set: if() recognizes numbers and boolean constants. Run "cmake
--help-policy CMP0012" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/
TOOLS/
This warning is for project developers. Use -Wno-dev to suppress it.
Please change this to IF(1) or, if necessary, remove the IF altogether.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libinsighttoolk
ProcVersionSign
Uname: Linux 3.2.0-27-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu11
Architecture: amd64
Date: Sun Aug 12 21:25:26 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: insighttoolkit
UpgradeStatus: Upgraded to precise on 2012-08-02 (10 days ago)
Hi Sjors, this is an upstream issue, do you mind reporting it upstream?