doc : fix the compilation on Os X

- The compilation option were not correct on Os X
for C++ code examples.

	modified:   CMakeLists.txt