Thank you. Applying this procedure for CMAKE_C_FLAGS and CMAKE_CXX_FLAGS fixed the problem.<br><br>Juan<br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 3:41 AM, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">try something like<br>
<br>
IF(MSVC)<br>
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /fp:strict")<br>
ENDIF(MSVC)<br>
<br>
- Dominik<br>
<br>
j s wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
In my CMakeLists.txt, how do I tell the windows build to use "/fp:strict" as a c and c++ compiler flag for any conceivable build type? ADD_DEFINITIONS does not appear to work.<br>
<br>
Thanks,<br>
<br>
Juan<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<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>
</blockquote>
<br>
<br>
-- <br>
d o m i n i k s z c z e r b a , p h d . . . . . . . . . . .<br>
c o m p u t a t i o n a l l i f e s c i e n c e g r o u p<br>
. . . . . . . i t ' i s r e s e a r c h f o u n d a t i o n<br>
. . . . . . . . . . . . . . . . . . . . <a href="http://www.itis.ethz.ch" target="_blank">http://www.itis.ethz.ch</a><br>
<br>
</blockquote></div><br>