> > SET(CMAKE_CXX_FLAGS
> > "${CMAKE_CXX_FLAGS} -w -lX11 -Dcimg_use_xshm -lXext
> -Dcimg_use_xrandr -lXrandr
> > -O3 -fpermissive -march=nocona -m64 -ffast-math
> -funroll-loops
> -finline-functions")
> >
> > Any ideas on who I convert those to windows (Visual
> Studio 2008)
> flags?
I think there is too much difference in GNU and MS compilers to be able
to just convert. I am sorry to say, but you probably need to dig in into
documentation for each compiler you want to support and do something like:
IF( "${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC" )
SET(CMAKE_CXX_FLAGS "MS compiler flags here")
ELSEIF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
SET(CMAKE_CXX_FLAGS "GNU compiler flags here")
ENDIF ()
Denis
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake