mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
The following is the error from compiler: Assembling cpu_asm.nasm cmd.exe /D /C "C:\Users\appveyor\AppData\Local\Temp\1\tmp62cb769c16c04b79a2f73246c8ccf95a.cmd" "/NASM/nasm.exe" -o "FLAC-asm.dir\Release\cpu_asm.obj" -fwin32 -I"C:\project\lib\flac\include\\" -I"C:\project\lib\flac\_build\Win32\\" -D"CMAKE_INTDIR="Release"" -dOBJ_FORMAT_win32 "C:\project\lib\flac\src\libFLAC\ia32\cpu_asm.nasm" C:\project\lib\flac\src\libFLAC\ia32\cpu_asm.nasm:34: fatal: unable to open include file `nasm.h' Closes #220. Signed-off-by: Ozkan Sezer <sezeroz@gmail.com>
18 lines
469 B
CMake
18 lines
469 B
CMake
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
|
add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/)
|
|
|
|
if(APPLE)
|
|
add_compile_options(-dOBJ_FORMAT_macho)
|
|
elseif(WIN32)
|
|
#add_compile_options(-d OBJ_FORMAT_win32)
|
|
# FIXME the command above doesn't seem to work on Windows
|
|
set(CMAKE_ASM_NASM_FLAGS -dOBJ_FORMAT_win32)
|
|
else()
|
|
add_compile_options(-dOBJ_FORMAT_elf)
|
|
endif()
|
|
|
|
add_library(FLAC-asm OBJECT
|
|
cpu_asm.nasm
|
|
fixed_asm.nasm
|
|
lpc_asm.nasm)
|