cmake version : 3.18.5 MinGW Makefiles Host : windows target : ppc compiler : windriver
I have a assembly file file.s which includes a header header.h( .include "header.h"). I have added the path of the header to the target_include_directories(). But the assembler is not able to find the header file specified. How to pass the include directories to the assembler ?
main/CMakeLists.txt
project(myProject LANGUAGES C ASM)
sub/CMakeList.txt
file(GLOB srcLib ${sub}/*.c ${sub}/*.s)
set_property(SOURCE ${sub}/file.s PROPERTY LANGUAGE ASM)
add_library(subLib STATIC ${srcLib})
set(INC ${sub}/inc)
target_include_directories(subLib PRIVATE ${INC})
file.s
.include "header.h"