INSTALL with FILES and generator expressions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

INSTALL with FILES and generator expressions

Jörg Kreuzberger
Hi!

i would like to install files with generator expressions. I define a variable with my qt install files.
These looks like this:

QT_INSTALL_FILES $<$<CONFIG:Debug>:/home/src/qt/486-64-dbg/lib/libQtCore-486-ubgcc482x64.so.4>;$<$<CONFIG:Release>:/home/src/qt/486-64-dbg/lib/libQtCore-486-ubgcc482x64.so.4>;$<$<CONFIG:Debug>:/home/src/qt/486-64-dbg/lib/libQtXml-486-ubgcc482x64.so.4>;$<$<CONFIG:Release>:/home/src/qt/486-64-dbg/lib/libQtXml-486-ubgcc482x64.so.4>;/home/src/s4_branch/s4/src/procitec/src/tools/internal/genmaw/$<$<CONFIG:Debug>:/home/src/qt/486-64-dbg/lib/libQtCore-486-ubgcc482x64.so.4>;/home/src/s4_branch/s4/src/procitec/src/tools/internal/genmaw/$<$<CONFIG:Release>:/home/src/qt/486-64-dbg/lib/libQtCore-486-ubgcc482x64.so.4>;/home/src/s4_branch/s4/src/procitec/src/tools/internal/genmaw/$<$<CONFIG:Debug>:/home/src/qt/486-64-dbg/lib/libQtXml-486-ubgcc482x64.so.4>;/home/src/s4_branch/s4/src/procitec/src/tools/internal/genmaw/$<$<CONFIG:Release>:/home/src/qt/486-64-dbg/lib/libQtXml-486-ubgcc482x64.so.4>

If i now install, cmake prepends the CMAKE_CURRENT_SOURCE_DIR to the files and fails with "cannot find file /my/current/source/dir/home/...."

Why is the file detected as "full" path?
Environment is unix and cmake 3.0, generator is unix makefiles

Thanks for any help
Joerg

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: INSTALL with FILES and generator expressions

Jörg Kreuzberger
Ok, found the issues.
A little later in the script a collegue added a few lines which "resolved" the files with realpath.
this seems to corrupt the generator expression :-)

after removing those lines, everything workes as expected.

Have a nice weekend.
Joerg

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake