Hello,

I am encountering specific problems and hope someone can help me.

I'm working on a patch to export target information from install tree for
OCE <https://github.com/tpaviot/oce> project. The OCE project use CMake to
manage the build process. For some reasons, OCE project install targets into
*bin* directory in *Release* configuration and *bind* directory in
*Debug*configuration. But there's something wrong when exporting
target
information.

My first solution is:

    INSTALL(TARGETS ${TOOLKIT}
>         *EXPORT ${PROJECT_NAME}-libraries*
>         RUNTIME DESTINATION ${TOOLKIT_INSTALL_BIN_DIR} CONFIGURATIONS
> Release RelWithDebInfo MinSizeRel COMPONENT RuntimeLibraries
>         LIBRARY DESTINATION ${TOOLKIT_INSTALL_LIB_DIR} CONFIGURATIONS
> Release RelWithDebInfo MinSizeRel COMPONENT RuntimeLibraries
>         ARCHIVE DESTINATION ${TOOLKIT_INSTALL_LIB_DIR} CONFIGURATIONS
> Release RelWithDebInfo MinSizeRel COMPONENT Development
>         )
>     INSTALL(TARGETS ${TOOLKIT}
>         *EXPORT ${PROJECT_NAME}-libraries*
>         RUNTIME DESTINATION ${TOOLKIT_INSTALL_BIN_DEBUG_DIR} CONFIGURATIONS
> "Debug" COMPONENT RuntimeLibraries
>         LIBRARY DESTINATION ${TOOLKIT_INSTALL_LIB_DEBUG_DIR} CONFIGURATIONS
> "Debug" COMPONENT RuntimeLibraries
>         ARCHIVE DESTINATION ${TOOLKIT_INSTALL_LIB_DEBUG_DIR} CONFIGURATIONS
> "Debug" COMPONENT Development
>         )
>
>
But CMake report the ${TOOLKIT} target had export more than once and stop
the generation.

Than I remove the export line in *Debug* configuration. Everything is well,
but the import information do not export into OCE-libraries-debug.cmake
file.

Any suggestion?

He Yuqi
--

Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to