MantisBT - CMake
View Issue Details
0009507CMakeModulespublic2009-09-09 02:422016-06-10 14:30
archimboldo 
Bill Hoffman 
normalmajoralways
closedmoved 
CMake-2-6 
 
0009507: FindQt4.cmake gets semicolons out of call to FILE(TO_CMAKE_PATH ... )
I'm running cmake from cygwin. When it runs FindQt4.cmake, I get the following error message

Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as C;/Qt/2009.03/qt/lib
Warning: C;/Qt/2009.03/qt/lib does NOT exist, Qt must NOT be installed correctly.

I traced it to TO_CMAKE_PATH converting C: to C;
You can reproduce the problem by running a CMakeLists.txt containing the following. If you like you can replace the EXEC_PROGRAM command with SET( QT_LIBRARY_DIR_RAW "C:\some\path"

EXEC_PROGRAM( qmake
      ARGS "-query QT_INSTALL_LIBS"
      OUTPUT_VARIABLE QT_LIBRARY_DIR_RAW )
STRING( REPLACE "C:" "" QT_LIBRARY_DIR_TMP ${QT_LIBRARY_DIR_RAW} )

FILE(TO_CMAKE_PATH ${QT_LIBRARY_DIR_TMP} QT_LIBRARY_DIR_TMP)
message( "Library path ${QT_LIBRARY_DIR_TMP}" )
No tags attached.
Issue History
2009-09-09 02:42archimboldoNew Issue
2009-09-11 17:21Bill HoffmanStatusnew => assigned
2009-09-11 17:21Bill HoffmanAssigned To => Clinton Stimpson
2009-09-11 17:59Clinton StimpsonNote Added: 0017394
2009-09-11 17:59Clinton StimpsonAssigned ToClinton Stimpson => Bill Hoffman
2009-09-11 20:55Bill HoffmanNote Added: 0017402
2009-09-14 21:29Bill HoffmanNote Added: 0017516
2009-09-14 21:29Bill HoffmanStatusassigned => closed
2009-09-14 21:29Bill HoffmanResolutionopen => unable to reproduce
2009-09-14 22:26Bill HoffmanNote Added: 0017519
2009-09-14 22:26Bill HoffmanStatusclosed => assigned
2009-09-14 22:26Bill HoffmanNote Added: 0017520
2010-08-28 10:23Kovarththanan RajaratnamCategoryCMake => Modules
2016-06-10 14:27Kitware RobotNote Added: 0041590
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionunable to reproduce => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0017394)
Clinton Stimpson   
2009-09-11 17:59   
Looks like a problem with
FILE(TO_CMAKE_PATH ...), not with the FindQt4.cmake module.
(0017402)
Bill Hoffman   
2009-09-11 20:55   
I can not reproduce this:

bar.cmake:
FILE(TO_CMAKE_PATH c:/foo/bar PATH )
message("${PATH}")


CVS CMake:

cmake -P bar.cmake
c:/foo/bar

2.6.4:

$ /cygdrive/c/Program\ Files/CMake\ 2.6/bin/cmake -P bar.cmake
c:/foo/bar
(0017516)
Bill Hoffman   
2009-09-14 21:29   
SET( QT_LIBRARY_DIR_RAW "C:\\some\\path")


FILE(TO_CMAKE_PATH ${QT_LIBRARY_DIR_RAW} QT_LIBRARY_DIR_TMP)
message( "Library path ${QT_LIBRARY_DIR_TMP}" )

Library path C:/some/path
(0017519)
Bill Hoffman   
2009-09-14 22:26   
OK, this could be a cygwin cmake issue...
(0017520)
Bill Hoffman   
2009-09-14 22:26   
Is this happening on Cygwin?
(0041590)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.