I attempted to run my MakeFile generated with cmake but ran into the following error:
Код: Выделить всё
error: no member named 'par' in namespace 'std::execution' std::execution::par, ~~~~~~~~~~~~~~~~^ 2 warnings and 1 error generated. make[2]: *** [CMakeFiles/PyATMSim.dir/atmsim/atm_sim.cpp.o] Error 1 make[1]: *** [CMakeFiles/PyATMSim.dir/all] Error 2
Answers on various forums indicated that I needed at least C++17 which has parallel support. However, even after adding the following code to my cmakelist.txt I got the same error:
Код: Выделить всё
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF)
Источник: https://stackoverflow.com/questions/781 ... -on-m1-mac