Re: [CMake] Selecting /Ox when compiling with VisualC++

2011-10-13 Thread Radio młodych bandytów
Thank you, it worked. On 2011-10-13 16:35, David Cole wrote: As this grep from a Visual Studio build tree shows, the variables containing "/O" compiler flags are the configuration-specific variables: $ grep "/O" CMakeCache.txt CMAKE_CXX_FLAGS_DEBUG:STRING=/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 CMAKE_

Re: [CMake] Selecting /Ox when compiling with VisualC++

2011-10-13 Thread David Cole
As this grep from a Visual Studio build tree shows, the variables containing "/O" compiler flags are the configuration-specific variables: $ grep "/O" CMakeCache.txt CMAKE_CXX_FLAGS_DEBUG:STRING=/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 CMAKE_CXX_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /D NDEBUG CMAKE_CXX_FLA

[CMake] Selecting /Ox when compiling with VisualC++

2011-10-13 Thread Radio młodych bandytów
I have code like below: IF(MSVC) set(CMAKE_CXX_FLAGS /Ox) set(CMAKE_C_FLAGS /Ox) ENDIF(MSVC) However, the flag is ignored and CMake generates projects that use /O2. How can I fix it? -- Twoje radio -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www