News for hackers. Stuff that matters.
Re:Epidemics Plugin for the UG4 software by stabbles on Friday November 26, 2021 @10:10AM (#29350873)
find_package(Threads), people...
Re:Epidemics Plugin for the UG4 software by junon on Friday November 26, 2021 @10:26AM (#29351030)
Yeah 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.
Re:Epidemics Plugin for the UG4 software by luegen on Friday November 26, 2021 @04:20PM (#29354241)
What's the issue with that?
Re:Epidemics Plugin for the UG4 software by stabbles on Friday November 26, 2021 @04:33PM (#29354352)
The 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...