Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 4 in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
C++ | solutions; not code

C++

#

Written by  on September 11, 2026

Yesterday while driving to work, I was thinking: shouldn’t it be possible to use modern #CMake to handle what we usually do with a #Git submodule?

So, let’s turn that idea into a working prototype and test it in practice.

For this example, CMake ๐…๐ž๐ญ๐œ๐ก๐‚๐จ๐ง๐ญ๐ž๐ง๐ญ is used instead of a Git submodule to provide #LVGL for a minimal demo application.

๐“๐ก๐ž ๐๐ž๐ฉ๐ž๐ง๐๐ž๐ง๐œ๐ฒ ๐๐ข๐ ๐ง๐จ๐ญ ๐๐ข๐ฌ๐š๐ฉ๐ฉ๐ž๐š๐ซ. ๐Ž๐ฐ๐ง๐ž๐ซ๐ฌ๐ก๐ข๐ฉ ๐จ๐Ÿ ๐๐ž๐ฉ๐ž๐ง๐๐ž๐ง๐œ๐ฒ ๐š๐œ๐ช๐ฎ๐ข๐ฌ๐ข๐ญ๐ข๐จ๐ง ๐ฆ๐จ๐ฏ๐ž๐ ๐Ÿ๐ซ๐จ๐ฆ ๐ญ๐ก๐ž ๐†๐ข๐ญ ๐œ๐ก๐ž๐œ๐ค๐จ๐ฎ๐ญ ๐ฆ๐จ๐๐ž๐ฅ ๐ญ๐จ ๐ญ๐ก๐ž ๐‚๐Œ๐š๐ค๐ž ๐œ๐จ๐ง๐Ÿ๐ข๐ ๐ฎ๐ซ๐ž ๐ฆ๐จ๐๐ž๐ฅ.

๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜ข๐˜ค๐˜ต๐˜ถ๐˜ข๐˜ญ๐˜ญ๐˜บ ๐˜ค๐˜ฉ๐˜ข๐˜ฏ๐˜จ๐˜ช๐˜ฏ๐˜จ?
* the VCS structure: LVGL is no longer part of the parent repository as a Git submodule
* the physical layout: the dependency moves from the source tree into the build tree
* the control: CMake declares the requested LVGL revision
* build graph: no ๐Ÿ˜‰ this is almost unchanged โ€” LVGL is still compiled and linked as a normal target

So, CMake does not replace Git. Git is still needed, but it is now invoked by CMake during configuration instead of being handled upfront by the developer.

The example can be found on GitHub: https://github.com/marcelpetrick/codingWithGPT/tree/master/cmakeFetchContentVersusGitSubmodule

Thank you for your attention ๐Ÿ™

qmake: shared libs without versioning and symlinks

Written by  on October 12, 2021

Fatal error: Uncaught Error: Call to a member function id() on array in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', '# disable symli...') #3 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('# disable symli...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlighter->process() #5 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php(703): CrayonHighlighter->output(true, false) #6 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/class-wp-hook.php(286): CrayonWP::the_content('<p>By default s...') #7 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/plugin.php(203): WP_Hook->apply_filters('<p>By default s...', Array) #8 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/post-template.php(240): apply_filters('the_content', 'By default shar...') #9 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/themes/clean-black/loop.php(7): the_content('Read more...') #10 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/template.php(751): require('/users/marcelpe...') #11 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/template.php(708): load_template('/users/marcelpe...', false) #12 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/general-template.php(155): locate_template in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36