[CMake] "STRING( REGEX REPLACE" Question

Jens Henrik Goebbert jens.goebbert at post.rwth-aachen.de
Thu Apr 21 13:50:40 EDT 2005


Hi

I try to write an "FindQt4.cmake"-File and need to know how to replace "../.." 
with ${QT_DIR}

I tried this:
STRING(REGEX REPLACE "\.\./\.\." "${QT_DIR}" QT_QGLOBAL_FILE 
"${QT_QGLOBAL_H_FILE})

But the regexpression does not get recognised ... even though I think it's 
correct.

Can you help me ?

Bye
	Jens Henrik



More information about the CMake mailing list