Portable path separator in pro-files?
-
Hi,
is there a portable way to separate directories in pro-files in function system()? Currently on Windows I have to write:
@
system(cd tests\test1)
@while on Linux I have to write:
@
system(cd test/test1)
@I know there is variable QMAKE_DIR_SEP, but it is undocumented. By the way, where this variable is defined?
Thank you!
-
Hi,
If you are using Qt 5 then you have system_path
@system(cd $$system_path(test/test1))@
Or something similar
Hope it helps
-
Thanks, but I need a solution for Qt 4 and Qt 5
-
The something like
@
TARGET_DIR = test/test1
win32:TARGET_DIR = $$replace(TARGET_DIR, /, \)
@