Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify if() conditions on check result variables to fix CMP0054 warnin... #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcfr
Copy link
Contributor

@jcfr jcfr commented Jan 23, 2015

...g

Remove use of an old hack that takes advantage of the auto-dereference
behavior of the if() command to detect if a variable is defined. The
hack has the form:

if("${VAR} MATCHES "^${VAR}$")

where "${VAR}" is a macro argument reference. Use if(NOT DEFINED) instead.
This also avoids warnings for CMake Policy CMP0054.

…ning

Remove use of an old hack that takes advantage of the auto-dereference
behavior of the if() command to detect if a variable is defined.  The
hack has the form:

 if("${VAR} MATCHES "^${VAR}$")

where "${VAR}" is a macro argument reference.  Use if(NOT DEFINED) instead.
This also avoids warnings for CMake Policy CMP0054.
lassoan pushed a commit to lassoan/OpenIGTLink that referenced this pull request May 3, 2017
EHN: This merge fix the ISSUE openigtlink#62 , also fix a potential bug in vtkIGTLToMRMLImage.
@leochan2009 leochan2009 force-pushed the master branch 5 times, most recently from fd79c15 to 3ec54f7 Compare July 19, 2017 15:34
@leochan2009 leochan2009 force-pushed the master branch 2 times, most recently from 5cacbce to 8ac5ca2 Compare July 13, 2018 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant