Should not assume that the compiler is gcc or is compatible...  should test for 
the flag and set it in a variable.

Cheers!
Sean


On Jul 14, 2013, at 10:49 AM, [email protected] wrote:

> Revision: 56036
>          http://sourceforge.net/p/brlcad/code/56036
> Author:   vladbogo
> Date:     2013-07-14 14:49:09 +0000 (Sun, 14 Jul 2013)
> Log Message:
> -----------
> Quiet float-equal warnings when Qt is enabled.
> 
> Modified Paths:
> --------------
>    brlcad/trunk/src/libdm/CMakeLists.txt
> 
> Modified: brlcad/trunk/src/libdm/CMakeLists.txt
> ===================================================================
> --- brlcad/trunk/src/libdm/CMakeLists.txt     2013-07-14 06:11:30 UTC (rev 
> 56035)
> +++ brlcad/trunk/src/libdm/CMakeLists.txt     2013-07-14 14:49:09 UTC (rev 
> 56036)
> @@ -55,6 +55,11 @@
> endif(BRLCAD_ENABLE_TK AND NOT WIN32)
> 
> if(BRLCAD_ENABLE_QT)
> +  if(BUILD_TYPE)
> +    set(CMAKE_CXX_FLAGS_${BUILD_TYPE} "${CMAKE_CXX_FLAGS_${BUILD_TYPE}} 
> -Wno-float-equal")
> +  else(BUILD_TYPE)
> +    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-float-equal")
> +  endif(BUILD_TYPE)
>   list(APPEND libdm_DEFINES DM_QT)
>   set(dmqt_srcs dm-qt.cpp)
>   set(CMAKE_AUTOMOC ON)
> 
> This was sent by the SourceForge.net collaborative development platform, the 
> world's largest Open Source development site.
> 
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> BRL-CAD Source Commits mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/brlcad-commits


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to