I got an error with minimal example on macOS, clion.
[ 50%] Building CXX object CMakeFiles/untitled.dir/main.cpp.o [100%] Linking CXX executable untitled ld: