Closed hextriclosan closed 2 years ago
$ cmake -DCMAKE_CXX_FLAGS="-fno-exceptions" . $ make :
$ cmake -DCMAKE_CXX_FLAGS="-fno-exceptions" .
$ make
[ 97%] Building CXX object CMakeFiles/json-tui.dir/src/main.cpp.o /Users/igor/dev/json-tui/src/main.cpp:324:3: error: cannot use 'try' with exceptions disabled try { ^ 1 error generated. make[2]: *** [CMakeFiles/json-tui.dir/src/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/json-tui.dir/all] Error 2 make: *** [all] Error 2
Indeed. Should we work to support "-fno-exception"?
I think it's not an issue as long it's a standalone utility (not a library) and you don't support platforms that have no exceptions
$ cmake -DCMAKE_CXX_FLAGS="-fno-exceptions" .
$ make
: