From 19d735a32b41320a76199ba7090b366973c8eaf3 Mon Sep 17 00:00:00 2001 From: Wolfgang Rohdewald Date: Thu, 24 Mar 2011 09:52:32 +0100 Subject: 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 --- modules/FindSIP.cmake | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.1