Specifying every source file manually sounds a little bit too manually to me. it’s a fast way to get all the source referenced (once the build system's running - replace globbing with explicit file-lists). FILE( GLOBRECURSE FLATBUFFERSRC '. Exceptions to the rule: There are times where globbing is preferable: For setting up a CMakeLists.txt files for existing projects that don't use CMake. ) is not recommended to collect source files for a build, but it doesn't mention what the recommended method actually is. Result of FILE(GLOBRECURSE) is a list, and exactly a list is expected by CMake when you specify arguments for a COMMAND.So, just pass this list to executeprocess, without any modifications and without quoting. Here is what I am doing: set(THIRDPARTY_INSTALLFOLDER $ "*. The CMake documentation explicitly states that file (GLOB. I’m in agreement with Ben and Marc, I really wouldn’t recommend projects use a globbing-based strategy. FWIW, I would push back pretty hard against a proposal to add globbing to targetsources (). The DLLs are definitely there before the code reaches the GLOB_RECURSE call. craig.scott (Craig Scott) July 15, 2021, 11:01am 7. The warning has to do with old CMake syntax. You can supress these warning by going to File > Settings > Build, Execution, Deployment > CMake, and then for the CMake options, add -Wno-dev. By default all files are first downloaded to the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |