I have the following shell script to create something:
SRC_DIR=$1
cd $SRC_DIR
rm CMakeCache.txt
cmake \
-DCGAL_DIR=/src/path \
-DCMAKE_CXX_FLAGS=" -frounding-math -std=c++11 " \
-DTBB_INSTALL_DIR=/tbb/dir \
-DTBB_ARCH_PLATFORM=tbb_arch \
.
make VERBOSE=1
Now the -x option will show me the commands issued by the script. The call is cmakeas follows:
cmake -DCGAL_DIR = / src / path '-DCMAKE_CXX_FLAGS = -frounding-math -std = C ++ 11' -DTBB_INSTALL_DIR = / tbb / dir -DTBB_ARCH_PLATFORM = tbb_arch.
The call is processed without an error message, but watch single quotes 'around -DCMAKE_CXX_FLAGS=....
Where are they from? What is their effect?
source
share