Hello,<br><br>I am encountering specific problems and hope someone can help me.<br><br>I&#39;m working on a patch to export target information from install tree for <a href="https://github.com/tpaviot/oce">OCE</a> project. The OCE project use CMake to manage the build process. For some reasons, OCE project install targets into <i><b>bin</b></i> directory in <i><b>Release</b></i> configuration and <i><b>bind</b></i> directory in <i><b>Debug</b></i> configuration. But there&#39;s something wrong when exporting target information.<br>
<br>My first solution is:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">    INSTALL(TARGETS ${TOOLKIT}<br>        <i style="color: rgb(204, 0, 0);"><b>EXPORT ${PROJECT_NAME}-libraries</b></i><br>
        RUNTIME DESTINATION ${TOOLKIT_INSTALL_BIN_DIR} CONFIGURATIONS Release RelWithDebInfo MinSizeRel COMPONENT RuntimeLibraries<br>        LIBRARY DESTINATION ${TOOLKIT_INSTALL_LIB_DIR} CONFIGURATIONS Release RelWithDebInfo MinSizeRel COMPONENT RuntimeLibraries<br>
        ARCHIVE DESTINATION ${TOOLKIT_INSTALL_LIB_DIR} CONFIGURATIONS Release RelWithDebInfo MinSizeRel COMPONENT Development<br>        )<br>    INSTALL(TARGETS ${TOOLKIT}<br>        <i style="color: rgb(204, 0, 0);"><b>EXPORT ${PROJECT_NAME}-libraries</b></i><br>

        RUNTIME DESTINATION ${TOOLKIT_INSTALL_BIN_DEBUG_DIR} CONFIGURATIONS &quot;Debug&quot; COMPONENT RuntimeLibraries<br>        LIBRARY DESTINATION ${TOOLKIT_INSTALL_LIB_DEBUG_DIR} CONFIGURATIONS &quot;Debug&quot; COMPONENT RuntimeLibraries<br>
        ARCHIVE DESTINATION ${TOOLKIT_INSTALL_LIB_DEBUG_DIR} CONFIGURATIONS &quot;Debug&quot; COMPONENT Development<br>        )<br><br></blockquote><div><br>But CMake report the ${TOOLKIT} target had export more than once and stop the generation.<br>
<br>Than I remove the export line in <i><b>Debug</b></i> configuration. Everything is well, but the import information do not export into OCE-libraries-debug.cmake file.<br><br>Any suggestion?<br><br>He Yuqi<br></div><div>
 </div>