![]() With CMake version 3.3.2, in order to create #define foo The cmake documentation can be found on the official page. Check the version of your Cmake by using $ cmake -version and pick the solution that fits your needs. Here the solution for the version I am using (i.e., 3.3.2). The other solutions proposed on this page are useful for some versions of Cmake > 3.3.2. Which can make life easier for consumers of your library.Īpplying pre-processor flags (Or any compiler flag) globally can create hidden dependencies in your build.Įssentially think of add_compile_definitions as globals in C/C++. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |