Thank you Alex!
>set_source_files_properties(... COMPILE_FLAGS ... ) should do it.
>
>Alex
On Wednesday 19 October 2011, Renan Greinert wrote:
>> Hello everybody,
>>
>>
>>
>> I have a simple Project like this:
>>
>> set(PROJ_SOURCES
>>
>> main.cpp
>>
>> manager.cpp
>>
>> exceptionhandler.cpp
>>
>> sqlite3.c )
>>
>>
>>
>> #and the following flags for visual studio
>>
>> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /Oi /Ot /GF /GS- /W4")
>>
>>
>>
>> The problem is that we want to compile with warnings level 4 (/W4), but
we
>> have 3rd part files (sqlite3.c in the example) and it throws thousands of
>> warnings. So, only that file, I'd like to compile with /W0 param.
>>
>>
>> Is it possible to do that with CMake?
--
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