Closed JorisFranck closed 2 years ago
Nice description of the bug 🎊 , this is not due to cmake but to the version of the compiler you are using. Can you add in the description the version of gcc (in the terminal gcc -v) or in the kit you chose when configuring cmake ?
Remove -Wpedantic from line 16
target_compile_options(freud PRIVATE -Wall -Wextra)
Bug description Lors du build avec CMake , erreur lors du build
What are the error messages you get in the console ?
[ 20%] Building C object CMakeFiles/freud.dir/src/argsparse.c.obj [build] cc1.exe: error: unrecognized command line option '-Wpedantic' [build] make.exe[3]: [CMakeFiles/freud.dir/src/argsparse.c.obj] Error 1 [build] make.exe[2]: [CMakeFiles/freud.dir/all] Error 2 [build] make.exe[1]: [CMakeFiles/freud.dir/rule] Error 2 [build] make.exe: [freud] Error 2 [build] Build finished with exit code 2
Step to reproduce Appuyer sur build après avoir mis cmake_minimum_required(VERSION 3.15)
Configuration gcc version 4.6.1
Résolu en supprimant -Wpedantic dans target_compile_options(freud PRIVATE -Wall -Wextra -Wpedantic)
Screen shot