Quantcast
Channel: How to clear all defines from cmake? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Florian for How to clear all defines from cmake?

Since those are platform specific defines in CMake, you can only remove them "globally" for your current CMakeList.txt scope (not for an idividual taret) with something like:string(REGEX REPLACE...

View Article


Answer by Patrick Avery for How to clear all defines from cmake?

In CMake, you can use remove_definitions for any definitions added via add_definitions. I'm not sure if that will work here, though, because cmake may not be adding them via add_definitions.You could...

View Article

How to clear all defines from cmake?

I have project where I need some specific preprocessor definitions. Nothing less nothing more. I tried various solutions:set(DEFINES MY_DEFINE)target_compile_definitions(my_target PRIVATE...

View Article
Browsing latest articles
Browse All 3 View Live