Bill Hoffman wrote: > On 8/30/2013 2:57 PM, Stewart, Robert wrote: > > I can't figure out how to get CMake to build my code with > > setting -D_UNICODE and -DUNICODE. I don't want those > > manifest constants set, but they appear in the generated > > DependInfo.cmake files when generating code for NMake > > Makefiles: > > I just did a git grep in the cmake source tree, and I don't > think UNICODE is being defined by CMake. Is your project > open source? Can you grep in your source tree for UNICODE?
I had searched before, but I missed a directory, for part of the build environment, that I picked up from someone else. That code was setting it before mine. Sorry for the noise. The argument reordering remains an issue. The following commands: add_definitions(-DUNICODE) add_definitions(-UUNICODE) should produce the following on the command line: -DUNICODE -UUNICODE Instead, I see the following: -UUNICODE -DUNICODE That's wrong. CMake should honor the order in which the definitions are set, at least when order matters. _____ Rob Stewart Software Engineer Dev Tools & Components Susquehanna International Group, LLP ________________________________ IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake