I&#39;m very new to CMake, but we can see the C++11 flags are not showing up in your VERBOSE output.<div><br></div><div>The way i&#39;m adding flags is by using:</div><div><br></div><div><div>add_definitions(-Wall -Wextra -std=c++0x -pedantic)</div>
<div><br></div><div>Don&#39;t know if is the more appropriate CMake command though.</div><div><br></div><div>Regards,</div><div>Júlio.</div><br><div class="gmail_quote">2012/8/22 Jason T. Slack-Moehrle <span dir="ltr">&lt;<a href="mailto:slackmoehrle@gmail.com" target="_blank">slackmoehrle@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt; Can you provide the output of &quot;make VERBOSE=1&quot;?<br>
<br>
</div>Absolutely.<br>
<div class="im"><br>
$ ./build.sh<br>
-- The C compiler identification is Clang 4.0.0<br>
-- The CXX compiler identification is Clang 4.0.0<br>
-- Check for working C compiler: /usr/bin/clang<br>
-- Check for working C compiler: /usr/bin/clang -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/clang++<br>
-- Check for working CXX compiler: /usr/bin/clang++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework<br>
-- Found GLUT: -framework GLUT<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: /Users/jtsm/Dropbox/Projects/All-Stars<br>
</div>&quot;/Applications/CMake 2.8-9.app/Contents/bin/cmake&quot;<br>
-H/Users/jtsm/Dropbox/Projects/All-Stars<br>
-B/Users/jtsm/Dropbox/Projects/All-Stars --check-build-system<br>
CMakeFiles/Makefile.cmake 0<br>
&quot;/Applications/CMake 2.8-9.app/Contents/bin/cmake&quot; -E<br>
cmake_progress_start /Users/jtsm/Dropbox/Projects/All-Stars/CMakeFiles<br>
/Users/jtsm/Dropbox/Projects/All-Stars/CMakeFiles/progress.marks<br>
make -f CMakeFiles/Makefile2 all<br>
make -f CMakeFiles/All-Stars.dir/build.make CMakeFiles/All-Stars.dir/depend<br>
cd /Users/jtsm/Dropbox/Projects/All-Stars &amp;&amp; &quot;/Applications/CMake<br>
2.8-9.app/Contents/bin/cmake&quot; -E cmake_depends &quot;Unix Makefiles&quot;<br>
/Users/jtsm/Dropbox/Projects/All-Stars<br>
/Users/jtsm/Dropbox/Projects/All-Stars<br>
/Users/jtsm/Dropbox/Projects/All-Stars<br>
/Users/jtsm/Dropbox/Projects/All-Stars<br>
/Users/jtsm/Dropbox/Projects/All-Stars/CMakeFiles/All-Stars.dir/DependInfo.cmake<br>
--color=<br>
Dependee &quot;/Users/jtsm/Dropbox/Projects/All-Stars/CMakeFiles/All-Stars.dir/DependInfo.cmake&quot;<br>
is newer than depender<br>
&quot;/Users/jtsm/Dropbox/Projects/All-Stars/CMakeFiles/All-Stars.dir/depend.internal&quot;.<br>
Dependee &quot;/Users/jtsm/Dropbox/Projects/All-Stars/CMakeFiles/CMakeDirectoryInformation.cmake&quot;<br>
is newer than depender<br>
&quot;/Users/jtsm/Dropbox/Projects/All-Stars/CMakeFiles/All-Stars.dir/depend.internal&quot;.<br>
<div class="im">Scanning dependencies of target All-Stars<br>
</div>make -f CMakeFiles/All-Stars.dir/build.make CMakeFiles/All-Stars.dir/build<br>
&quot;/Applications/CMake 2.8-9.app/Contents/bin/cmake&quot; -E<br>
cmake_progress_report<br>
/Users/jtsm/Dropbox/Projects/All-Stars/CMakeFiles 1<br>
<div class="im">[100%] Building CXX object CMakeFiles/All-Stars.dir/main.cpp.o<br>
</div>/usr/bin/clang++    -I/Users/jtsm/Dropbox/Projects/All-Stars<br>
-I/System/Library/Frameworks/GLUT.framework/Headers    -o<br>
CMakeFiles/All-Stars.dir/main.cpp.o -c<br>
/Users/jtsm/Dropbox/Projects/All-Stars/main.cpp<br>
<div class="im HOEnZb">/Users/jtsm/Dropbox/Projects/All-Stars/main.cpp:4:10: fatal error:<br>
&#39;thread&#39; file not found<br>
#include &lt;thread&gt;<br>
         ^<br>
1 error generated.<br>
make[2]: *** [CMakeFiles/All-Stars.dir/main.cpp.o] Error 1<br>
make[1]: *** [CMakeFiles/All-Stars.dir/all] Error 2<br>
make: *** [all] Error 2<br>
</div><div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>