3 ms·
Cool! How do I get CMake with `Unix Makefiles` generator to use `--shuffle` flag? Then I can use this same feature to find dependency issues in my CMakeLists.tx
by inetknght 4y ago
Cool! How do I get CMake with `Unix Makefiles` generator to use `--shuffle` flag? Then I can use this same feature to find dependency issues in my CMakeLists.txt files...
- iokanuon 4y agoIt's an option you can use when invoking `make` - so no need to specify extra cmake options, just during `make` invocation after `cmake` is already done
- wyldfire 4y agoJust pass it when you invoke it. cmake -G'Unix Makefiles' -S $SRC_DIR -B $BUILD_DIR cmake --build $BUILD_DIR -- --shuffle
- spyc 4y agoOne way would be not using "cmake --build" but invoking make directly yourself after calling CMake.