Fixup for fix for OSX build using a build folder name with spaces
authorDalai Felinto <dfelinto@gmail.com>
Fri, 1 Mar 2019 20:07:06 +0000 (17:07 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 1 Mar 2019 20:07:08 +0000 (17:07 -0300)
Bug introduced on: 1f22e3f311e74031c3c01714117d759d3e3de3f1.
This was making regular Mac builds to fail, where they were not failing before.

Tested by William Reynish.

build_files/cmake/platform/platform_apple.cmake

index 56ec5ad..4047a8f 100644 (file)
@@ -389,9 +389,9 @@ if(WITH_OPENMP)
                message(STATUS "Using ${LIBDIR}/openmp for OpenMP")
                set(OPENMP_CUSTOM ON)
                set(OPENMP_FOUND ON)
-               set(OpenMP_C_FLAGS "-Xclang -fopenmp -I\"${LIBDIR}/openmp/include\"")
-               set(OpenMP_CXX_FLAGS "-Xclang -fopenmp -I\"${LIBDIR}/openmp/include\"")
-               set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L\"${LIBDIR}/openmp/lib\" -lomp")
+               set(OpenMP_C_FLAGS "-Xclang -fopenmp -I'${LIBDIR}/openmp/include'")
+               set(OpenMP_CXX_FLAGS "-Xclang -fopenmp -I'${LIBDIR}/openmp/include'")
+               set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L'${LIBDIR}/openmp/lib' -lomp")
 
                # Copy libomp.dylib to allow executables like datatoc to work.
                if(CMAKE_MAKE_PROGRAM MATCHES "xcodebuild")