[cmake-developers] [CMake 0016030]: CMAKE_ASM_NASM_COMPILE_OBJECT lacks <INCLUDES>
Mantis Bug Tracker
mantis at public.kitware.com
Tue Mar 22 12:10:02 EDT 2016
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
======================================================================
More information about the cmake-developers
mailing list