The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=16030
======================================================================
Reported By: Gregor Jasny
Assigned To:
======================================================================
Project: CMake
Issue ID: 16030
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-03-22 12:10 EDT
Last Modified: 2016-03-22 12:10 EDT
======================================================================
Summary: CMAKE_ASM_NASM_COMPILE_OBJECT lacks <INCLUDES>
Description:
Starting with CMake 3.4 the ASM_NASM language does not pass forward
include_directories(XYZ) to the nasm compiler line.
output of the test case:
<pre>
-- <CMAKE_ASM_NASM_COMPILER> <FLAGS> -f elf64 -o <OBJECT> <SOURCE>
[ 66%] Building ASM_NASM object CMakeFiles/vpxCodec.dir/foo.asm.o
/usr/bin/yasm -f elf64 -o CMakeFiles/vpxCodec.dir/foo.asm.o
/uhome/gjasny/src/cmake-yasm-bug/foo.asm
</pre>
As far as I can see <INCLUDES> is missing for other assemblers as well.
Steps to Reproduce:
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(Foo)
find_program(COLYASM_EXECUTABLE NAMES yasm)
set(CMAKE_ASM_NASM_COMPILER ${COLYASM_EXECUTABLE})
enable_language(ASM_NASM)
include_directories(build/x86_64-linux-gcc)
add_library(vpxCodec STATIC bar.cpp foo.asm)
message(STATUS "${CMAKE_ASM_NASM_COMPILE_OBJECT}")
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-03-22 12:10 Gregor Jasny New Issue
======================================================================
--
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