<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<BR>We are using CPack (WIX generator) to create an installer. This works fine but with one slight problem that the installer contains a component that I did not expect.<BR>The main CMakeList.txt file includes;<br>SET(CPACK_COMPONENTS_ALL RUNTIME)<BR>In a sub CMakeList.txt file I have the following line:<br>INSTALL(<br> DIRECTORY ${DOC_PATH}<br> DESTINATION ${INSTALL_DOC_DIR}<br> COMPONENT DOC)<BR>The current installer should not include this component but another installer will include this component.<BR>In the cmake_install.cmake that correspond to the sub CMakeList.txt I find the code below. <BR><br># Set the component getting installed.<br>IF(NOT CMAKE_INSTALL_COMPONENT) # true<br> IF(COMPONENT) # false<br> MESSAGE(STATUS "Install component: \"${COMPONENT}\"")<br> SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}")<br> ELSE(COMPONENT)<br> SET(CMAKE_INSTALL_COMPONENT)<br> ENDIF(COMPONENT)<br>ENDIF(NOT CMAKE_INSTALL_COMPONENT)<BR>IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "DOC")<br> FILE(...)<br>ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "DOC")<BR><br>Debugging this code, it appears "IF(NOT CMAKE_INSTALL_COMPONENT)" is true and "IF(COMPONENT)" is false. This means "CMAKE_INSTALL_COMPONENT" is set to empty. This again means "IF(NOT CMAKE_INSTALL_COMPONENT" will be true and the file(s) will be installed. <BR>So the problem seems to be rooted in the fact that "IF(COMPONENT)" is false. So who is responsible for setting the content of "COMPONENT" variable? <BR>Appreciate any help.<BR> <BR>                                            </div></body>
</html>