3 ms·
find_package(Threads), people...
by stabbles 5y ago
find_package(Threads), people...
- junon 5y agoYeah there's a lot of bad stuff happening in the CMake config. Further, this doesn't appear to be used by the government. At least not RKI.
- luegen 5y agoWhat's the issue with that?
- stabbles 5y agoThe CMakeLists.txt is very poor. Just use find_package(Threads REQUIRED) and do target_link_libraries(... Threads::Threads), and use target_compile_features or target properties to set the C++ version. Right now the CMakeLists.txt requires the user to set that, at which point you might be better off with a Makefile...