I noticed that CMake strips the trailing forward slash from an include directory when assembling an object file with NASM. The trailing slash is required with NASM. See section 2.1.16 from the NASM manual <http://www.nasm.us/doc/nasmdoc2.html>. I've included an example that illustrates the bug.
I copied the command text and added the trailing slash and wrote '-f elf64' instead of '-f elf'. The command ran successfully. Then I ran `make` again to resume the CMake build and it failed. I noticed that the Makefile was using NASM to link the executable. I don't believe NASM has this capability. I believe the stripping of the trailing slash and using NASM for linking are bugs. If I'm just doing something wrong then I'd love to know how to fix it. In the meantime, I'll just be using NASM with add_custom_command to get the job done.
nasm-bug.tar.gz
Description: GNU Zip compressed data
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers