Package: cmake
Version: 2.6.0-6
Severity: normal
Hello,
I've just tried to compile a program with find_package(Qt4 REQUIRED) in the
CMakeLists.txt and the binary path containing two plus signs (+) which leads to
the following error:
> RegularExpression::compile(): Nested *?+.
> RegularExpression::compile(): Error in compile.
> CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF):
> if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES
> "${_checkinfile}" (Regular expression
> "~/workspace/c++Spielwiese/src/zz_Qt_S" cannot compile).
> Call Stack (most recent call first):
> /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE)
> CMakeLists.txt:11 (QT4_WRAP_CPP)
The CMakeLists.txt looks like this:
> cmake_minimum_required(VERSION 2.6)
> project(QtSuStest)
> set(CMAKE_INCLUDE_CURRENT_DIR ON)
> set(CMAKE_COLOR_MAKEFILE ON)
> find_package( Qt4 REQUIRED )
> include(${QT_USE_FILE})
> set(QtSuStest_SRCS
> counter.cpp
> main.cpp)
> set(QtSuStest_MOC_HDRS counter.h)
> QT4_WRAP_CPP(QtSuStest_MOC_SRCS ${QtSuStest_MOC_HDRS})
> add_executable(QtSuStest ${QtSuStest_SRCS} ${QtSuStest_MOC_SRCS})
> #include_directories(${CMAKE_BINARY_DIR})
> target_link_libraries(QtSuStest ${QT_LIBRARIES})
Compiling the very same program in any other directory (that is, any other
directory not containing a plus in its path) works like a charm.
If you need further information/tests, I'm more than happy to provide them. Just
ask.
Kind regards,
Kai
-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.28.2-cabal
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cmake depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libcurl3-gnutls 7.18.2-8 Multi-protocol file transfer libra
ii libexpat1 2.0.1-4 XML parsing C library - runtime li
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libncurses5 5.7+20081213-1 shared libraries for terminal hand
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii libxmlrpc-c3 1.06.27-1 A lightweight RPC library based on
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
cmake recommends no packages.
cmake suggests no packages.
-- no debconf information
--
Kai Wasserbäch (Kai Wasserbaech)
E-Mail: [email protected]
Jabber (debianforum.de): Drizzt
URL: http://wiki.debianforum.de/Drizzt_Do%27Urden
GnuPG: 0xE1DE59D2 0600 96CE F3C8 E733 E5B6 1587 A309 D76C E1DE 59D2
(http://pgpkeys.pca.dfn.de/pks/lookup?search=0xE1DE59D2&fingerprint=on&hash=on&op=vindex)
signature.asc
Description: OpenPGP digital signature

