From ae57ea52f90e4bcfaa53d23c65c8f998667bc788 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 24 Apr 2017 02:24:47 +0200 Subject: [PATCH] Escape PROJECT_SOURCE_DIR since it can contain spaces fixes: nasm: error: more than one input file specified --- ports/libflac/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/libflac/CMakeLists.txt b/ports/libflac/CMakeLists.txt index a9f1afc5e8..c228025f90 100644 --- a/ports/libflac/CMakeLists.txt +++ b/ports/libflac/CMakeLists.txt @@ -30,7 +30,7 @@ if(LIBFLAC_ARCHITECTURE MATCHES x86) src/libFLAC/ia32/cpu_asm.nasm src/libFLAC/ia32/fixed_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) add_definitions(-DFLAC__CPU_X86_64) add_definitions(-DENABLE_64_BIT_WORDS)