<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Alexander,<div><br><div><div>On Oct 19, 2009, at 23:18 PM, Alexander Neundorf wrote:</div><blockquote type="cite"><div><p><font size="2">&gt; I set CMAKE_SYSTEM to Linux, even added "SET(APPLE 0)" but<br> &gt; install_name option is still generating.<br> <br> You should set "CMAKE_SYSTEM_NAME", not "CMAKE_SYSTEM" to "Linux". If you<br> really set CMAKE_SYSTEM instead of CMAKE_SYSTEM_NAME, this will fix your<br> problem (after a quick look it seems install_name is really only set in the<br> Modules/Platform/Darwin*.cmake files, which should not get loaded if<br> CMAKE_SYSTEM_NAME is set to Linux).<br></font></p></div></blockquote></div>I tried. Setting CMAKE_SYSTEM_NAME to "Linux" does not seem to affect CMAKE_SYSTEM</div><div>(i.e. adding</div><div><br></div><div>-----</div><div>SET(CMAKE_SYSTEM_NAME "Linux")</div><div><br></div><div>...</div><div><br></div><div><div>MESSAGE("CMAKE_SYSTEM_NAME is ${CMAKE_SYSTEM_NAME}")</div><div>MESSAGE("CMAKE_SYSTEM is ${CMAKE_SYSTEM}")</div><div><div>-----</div><div><br></div><div><br></div></div></div><div>results to</div><div><br></div><div><div>-----</div><div>CMAKE_SYSTEM_NAME is Linux</div><div>CMAKE_SYSTEM is Darwin-9.8.0</div><div>-----</div><div><br></div><div>Though</div><div><br></div><div>-----</div><div><div>SET(CMAKE_SYSTEM "Linux")</div><div>-----</div><div><br></div><div>results to</div><div><br></div><div><div>CMAKE_SYSTEM_NAME is Darwin</div><div>CMAKE_SYSTEM is Linux</div><div><br></div><div><br></div><div>So it seems that I have to set to Linux both variables. Anyway, cmake keeps adding install_name (and other Darwin-specific things) to linker options.</div></div><div><div></div></div></div></div></body></html>