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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMake/OpenIGTLinkCMakeTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ INCLUDE(CheckFunctionExists)

CHECK_LIBRARY_EXISTS("socket" getsockname "" OpenIGTLink_HAVE_LIBSOCKET)

IF("OpenIGTLink_HAVE_GETSOCKNAME_WITH_SOCKLEN_T" MATCHES "^OpenIGTLink_HAVE_GETSOCKNAME_WITH_SOCKLEN_T$")
IF(NOT DEFINED "OpenIGTLink_HAVE_GETSOCKNAME_WITH_SOCKLEN_T")
IF(OpenIGTLink_HAVE_LIBSOCKET)
SET(OpenIGTLink_GETSOCKNAME_LIBS "socket")
ELSE(OpenIGTLink_HAVE_LIBSOCKET)
Expand All @@ -32,7 +32,7 @@ IF("OpenIGTLink_HAVE_GETSOCKNAME_WITH_SOCKLEN_T" MATCHES "^OpenIGTLink_HAVE_GETS
"failed with the following output:\n"
"${OUTPUT}\n" APPEND)
ENDIF(OpenIGTLink_HAVE_GETSOCKNAME_WITH_SOCKLEN_T)
ENDIF("OpenIGTLink_HAVE_GETSOCKNAME_WITH_SOCKLEN_T" MATCHES "^OpenIGTLink_HAVE_GETSOCKNAME_WITH_SOCKLEN_T$")
ENDIF(NOT DEFINED "OpenIGTLink_HAVE_GETSOCKNAME_WITH_SOCKLEN_T")


# e.g. Mac OS X Snow Leopard does not have strnlen().
Expand Down