![]() ![]() If you don't want your builds to break, and your crops to die, you should learn to use CMake properly. ![]() Heeding any of this advice will send you and your project careening down a road to madness, paved into the earth by the sweat and tears of those who have tried to port a project that hard-codes a library path. Just about every StackOverflow answer is out of date, wrong, or both. There is so much bad information about CMake out there. I figured I'd roll up my sleeves and get to work, and so I started where anyone else would: by Googling "CMake tutorial". The existing build didn't work right in CLion, it couldn't find its dependencies (except on CI, somehow), and it didn't produce usable packages. I knew CMake had a polarizing reputation, but I needed to make Halide work easily on Windows. ![]() I spent the better part of my off-hours last year rewriting Halide's CMake build. When age fell upon the world, and wonder went out of the minds of men when grey cities reared to smoky skies tall towers grim and ugly, in whose shadow none might dream of the sun or of spring's flowering meads when learning stripped earth of her mantle of beauty, and poets sang no more save of twisted phantoms seen with bleared and inward-looking eyes when these things had come to pass, and childish hopes had gone away forever, there was a man who travelled out of life on a quest into the spaces whither the world's dreams had fled. The views and opinions expressed in this website are those of Alex Reinking and do not necessarily reflect the views or positions of his employer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |