[Development] One more possible CMake related problem

Dmitry Ashkadov dmitry.ashkadov at gmail.com
Tue Jul 23 10:42:03 CEST 2013


Hello!

Here is a piece of code of 
qtbase/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 
<http://qt.gitorious.org/qt/qtbase/blobs/54987c6bf55b159d3ddb79461439700f6e0111f9/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in>:

> !!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
>     set(imported_location 
> \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
> !!ELSE
>     set(imported_location \"IMPORTED_LOCATION_${Configuration}\" 
> \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
> !!ENDIF
> _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
>     set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
> \"IMPORTED_LINK_INTERFACE_LIBRARIES_${Configuration}\" 
> \"${_Qt5$${CMAKE_MODULE_NAME}_LIB_DEPENDENCIES}\"
>         \"IMPORTED_LOCATION_${Configuration}\" ${imported_location}
> !!IF !isEmpty(CMAKE_LIB_SONAME)
>         \"IMPORTED_SONAME_${Configuration}\" \"$${CMAKE_LIB_SONAME}\"
> !!ENDIF
> )

if isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE) is false then imported_location 
will contain something like IMPORTED_LOCATION_Debug or 
IMPORTED_LOCATION_Release, so, the following 
_qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location}) will 
check for an existence of file having name "IMPORTED_LOCATION_*" and 
then fail. It seems like there is a mistake.

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130723/0b1ea057/attachment.html>


More information about the Development mailing list