aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindSIP.cmake
diff options
context:
space:
mode:
authorChristophe Giboudeaux <christophe@krop.fr>2021-03-29 20:28:58 +0200
committerChristophe Giboudeaux <christophe@krop.fr>2021-04-06 19:59:17 +0000
commit272352969834598cfd20f3e8b15916aa3ccebbbb (patch)
treed0d831203f0816ee2d4edecb526cdbdec64ea3d4 /attic/modules/FindSIP.cmake
parentd88db6a1469bdcb48e64f265d35a6f7867767b54 (diff)
downloadextra-cmake-modules-272352969834598cfd20f3e8b15916aa3ccebbbb.tar.gz
extra-cmake-modules-272352969834598cfd20f3e8b15916aa3ccebbbb.tar.bz2
Clean ECM's attic
Diffstat (limited to 'attic/modules/FindSIP.cmake')
-rw-r--r--attic/modules/FindSIP.cmake60
1 files changed, 0 insertions, 60 deletions
diff --git a/attic/modules/FindSIP.cmake b/attic/modules/FindSIP.cmake
deleted file mode 100644
index d94bd8ef..00000000
--- a/attic/modules/FindSIP.cmake
+++ /dev/null
@@ -1,60 +0,0 @@
-# Find SIP
-# ~~~~~~~~
-#
-# SIP website: https://riverbankcomputing.com/software/sip
-#
-# Find the installed version of SIP. FindSIP should be called after Python
-# has been found.
-#
-# This file defines the following variables:
-#
-# SIP_VERSION - The version of SIP found expressed as a 6 digit hex number
-# suitable for comparison as a string.
-#
-# SIP_VERSION_STR - The version of SIP found as a human readable string.
-#
-# SIP_EXECUTABLE - Path and filename of the SIP command line executable.
-#
-# SIP_INCLUDE_DIR - Directory holding the SIP C++ header file.
-#
-# SIP_DEFAULT_SIP_DIR - Default directory where .sip files should be installed
-# into.
-
-# Copyright (c) 2007, Simon Edwards <simon@simonzone.com>
-# Redistribution and use is allowed according to the terms of the BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-
-
-
-IF(SIP_VERSION)
- # Already in cache, be silent
- SET(SIP_FOUND TRUE)
-ELSE(SIP_VERSION)
-
- FIND_FILE(_find_sip_py FindSIP.py PATHS ${CMAKE_MODULE_PATH})
-
- EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${_find_sip_py} OUTPUT_VARIABLE sip_config)
- IF(sip_config)
- STRING(REGEX REPLACE "^sip_version:([^\n]+).*$" "\\1" SIP_VERSION ${sip_config})
- STRING(REGEX REPLACE ".*\nsip_version_str:([^\n]+).*$" "\\1" SIP_VERSION_STR ${sip_config})
- STRING(REGEX REPLACE ".*\nsip_bin:([^\n]+).*$" "\\1" SIP_EXECUTABLE ${sip_config})
- IF(NOT SIP_DEFAULT_SIP_DIR)
- STRING(REGEX REPLACE ".*\ndefault_sip_dir:([^\n]+).*$" "\\1" SIP_DEFAULT_SIP_DIR ${sip_config})
- ENDIF(NOT SIP_DEFAULT_SIP_DIR)
- STRING(REGEX REPLACE ".*\nsip_inc_dir:([^\n]+).*$" "\\1" SIP_INCLUDE_DIR ${sip_config})
- FILE(TO_CMAKE_PATH ${SIP_DEFAULT_SIP_DIR} SIP_DEFAULT_SIP_DIR)
- FILE(TO_CMAKE_PATH ${SIP_INCLUDE_DIR} SIP_INCLUDE_DIR)
- SET(SIP_FOUND TRUE)
- ENDIF(sip_config)
-
- IF(SIP_FOUND)
- IF(NOT SIP_FIND_QUIETLY)
- MESSAGE(STATUS "Found SIP version: ${SIP_VERSION_STR}")
- ENDIF(NOT SIP_FIND_QUIETLY)
- ELSE(SIP_FOUND)
- IF(SIP_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find SIP")
- ENDIF(SIP_FIND_REQUIRED)
- ENDIF(SIP_FOUND)
-
-ENDIF(SIP_VERSION)