aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2011-03-24 09:52:32 +0100
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2011-03-24 09:52:32 +0100
commit19d735a32b41320a76199ba7090b366973c8eaf3 (patch)
tree23e1a5e825bb3c3f0374dbc3c57b2cac7a397123
parent35754c4b9b7395f5c7fb6759801b07007130eeae (diff)
downloadextra-cmake-modules-19d735a32b41320a76199ba7090b366973c8eaf3.tar.gz
extra-cmake-modules-19d735a32b41320a76199ba7090b366973c8eaf3.tar.bz2
Generate cmake standard path names for SIP
FindSIP.py returns things like C:\Python27\sip which will be passed to the compiler like C:\Python27\sip/PyKDE4 - the MSVC 10 compiler cannot parse that, thinking /P is an option. So we convert those paths to the cmake standard form C:/Python27/sip
-rw-r--r--modules/FindSIP.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/FindSIP.cmake b/modules/FindSIP.cmake
index 53e28881..61eaa65f 100644
--- a/modules/FindSIP.cmake
+++ b/modules/FindSIP.cmake
@@ -42,6 +42,8 @@ ELSE(SIP_VERSION)
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)