CMake: Solve compilation error from path with a space
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 30 Apr 2015 07:55:52 +0000 (12:55 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 30 Apr 2015 07:55:52 +0000 (12:55 +0500)
CMakeLists.txt

index 4724e101603e84fdbac6fc2650c2e4901fda117c..9c7308e1fc246e18f98426e2a6822195df4cdfad 100644 (file)
@@ -1127,7 +1127,7 @@ if(UNIX AND NOT APPLE)
 
        if(WITH_LLVM OR WITH_SDL_DYNLOAD)
                # Fix for conflict with Mesa llvmpipe
-               set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/source/creator/blender.map")
+               set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,--version-script='${CMAKE_SOURCE_DIR}/source/creator/blender.map'")
        endif()
 
        # OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using --as-needed