Skip to content

Instantly share code, notes, and snippets.

View leiysky's full-sized avatar
:octocat:
Working

Yu Lei leiysky

:octocat:
Working
  • Guangzhou, China
View GitHub Profile

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@leiysky
leiysky / gist:fc0fe01db975c3a3e8a5d4b4c1001a03
Created January 30, 2019 13:23
umi issue error report
ERROR Failed to compile with 2 errors 21:12:36
error in ./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/media/suggest.css
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
Error: Didn't get a result from child compiler
at childCompiler.runAsChild (/Users/leiysky/work/ttarch/archcloud/node_modules/mini-css-extract-plugin/dist/loader.js:121:23)
at compile (/Users/leiysky/work/ttarch/archcloud/node_modules/webpack/lib/Compiler.js:296:11)
at hooks.afterCompile.callAsync.err (/Users/leiysky/work/ttarch/archcloud/node_modules/webpack/lib/Compiler.js:552:14)