Merge pull request #974 from madebr/flac_escape

libflac: escape PROJECT_SOURCE_DIR
This commit is contained in:
Alexander Karatarakis 2017-04-24 12:57:39 -07:00 committed by GitHub
commit f395777fa3

View File

@ -30,7 +30,7 @@ if(LIBFLAC_ARCHITECTURE MATCHES x86)
src/libFLAC/ia32/cpu_asm.nasm src/libFLAC/ia32/cpu_asm.nasm
src/libFLAC/ia32/fixed_asm.nasm src/libFLAC/ia32/fixed_asm.nasm
src/libFLAC/ia32/lpc_asm.nasm) src/libFLAC/ia32/lpc_asm.nasm)
set(CMAKE_ASM_NASM_FLAGS "-i${PROJECT_SOURCE_DIR}/src/libFLAC/ia32/ -f win32 -d OBJ_FORMAT_win32") set(CMAKE_ASM_NASM_FLAGS "-i\"${PROJECT_SOURCE_DIR}/src/libFLAC/ia32/\" -f win32 -d OBJ_FORMAT_win32")
elseif(LIBFLAC_ARCHITECTURE MATCHES x64) elseif(LIBFLAC_ARCHITECTURE MATCHES x64)
add_definitions(-DFLAC__CPU_X86_64) add_definitions(-DFLAC__CPU_X86_64)
add_definitions(-DENABLE_64_BIT_WORDS) add_definitions(-DENABLE_64_BIT_WORDS)