No, you can only add the compile definitions to the other files. You should split all files into two lists and set the compile definition for unicode to just one.
Andrea
Il 19/05/2011 7.57, Robert Bielik ha scritto:
Robert Bielik skrev 2011-05-19 07:55:
Hi,

CMake 2.8.4 , MSVC generators:

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.

/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

__________ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 6127 (20110516) __________

Il messaggio รจ stato controllato da ESET NOD32 Antivirus.

www.nod32.it





_______________________________________________
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

Reply via email to