<div dir="ltr">Use `<code class="gmail-descname">CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION` to add a man's dir to 'exclude' list, so RPM package wouldn't have a dir, but files from it... so it wouldn't conflict w/ `filesystem` package.<br></code></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 30, 2016 at 12:14 AM, Robert J. Hansen <span dir="ltr"><<a href="mailto:rjh@sixdemonbag.org" target="_blank">rjh@sixdemonbag.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm migrating a project from Autotools to CMake.  So far it's been a<br>
good experience save for installing manpages.<br>
<br>
I'm using include(GNUInstallDirs) to help make the migration easier.  In<br>
my manpage subdir I have the following CMakeLists.txt:<br>
<br>
set(MAN_NAMES nsrlsvr.1 nsrlupdate.1)<br>
add_custom_target(man ALL DEPENDS ${MAN_NAMES})<br>
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/<wbr>nsrlsvr.1 DESTINATION<br>
${CMAKE_INSTALL_MANDIR}/man1/)<br>
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/<wbr>nsrlupdate.1 DESTINATION<br>
${CMAKE_INSTALL_MANDIR}/man1/)<br>
<br>
This seems to work just fine for a "make install", and it successfully<br>
generates RPMs with a "make package".  However, those RPMs are<br>
uninstallable on a Fedora system:<br>
<br>
Error: Transaction check error:<br>
  file /usr/share/man from install of nsrlsvr-1.6.1-1.x86_64 conflicts<br>
with file from package filesystem-3.2-37.fc24.x86_64<br>
  file /usr/share/man/man1 from install of nsrlsvr-1.6.1-1.x86_64<br>
conflicts with file from package filesystem-3.2-37.fc24.x86_64<br>
<br>
Apparently, CMake is trying to create dirs even if they already exist.<br>
Is there any way to suppress this?  What's the best way to address this?<br>
<br>
(The full source tree, along with all the CMakeLists.txt files, is<br>
available at <a href="https://github.com/rjhansen/nsrlsvr/" rel="noreferrer" target="_blank">https://github.com/rjhansen/<wbr>nsrlsvr/</a> )<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>