Estia-1a / projetGenieInfo_public

This is the main repository for the Estia First Year Computer Science Project
MIT License
1 stars 2 forks source link

[VSCode build error] cc1.exe : unrecognized command line option '-Wpedantic' #50

Closed JorisFranck closed 2 years ago

JorisFranck commented 2 years ago

Bug description Lors du build avec CMake , erreur lors du build

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 Capture d’écran 2022-06-13 090455

dhmmasson commented 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 ?

Steps to Solve

Remove -Wpedantic from line 16

target_compile_options(freud PRIVATE -Wall -Wextra)