Robert Bielik skrev 2011-05-19 07:57:
I have a problem where I need to be able to select Unicode build or not, but at
the same time 3 files of my project MUST NOT have
Unicode enabled. Is there a way to remove compile definitions for certain
source files ?
Oh, and I cannot extract those 3 files into a separate static library as my
project _is_ a static library that should have no extra
dependencies as viewed from including apps.
Ok, I did it by set_source_files_properties (compile_definitions) on all source
files BUT the 3 I wanted in non-unicode always. Works fine,
but it would be great with a remove_compile_definitions for
set_source_files_properties ? :)
Regards,
/Rob
_______________________________________________
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