Dear all
I have made changes to CMakeLists.txt
set (CMAKE_Fortran_COMPILER "gfortran")
set (CMAKE_Fortran_FLAGS_RELEASE "-O2 -m64")
set (CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -m64”)
SET(TARGET_SRC
${TARGET}.cc
kronrod.f90
)
PROJECT(${TARGET} CXX Fortran)
When I compile, I get this error
$ make
[ 33%] Building Fortran object CMakeFiles/main.dir/kronrod.f90.o
gfortran: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-argument'?
make[2]: *** [CMakeFiles/main.dir/kronrod.f90.o] Error 1
make[1]: *** [CMakeFiles/main.dir/all] Error 2
make: *** [all] Error 2
This seems related to clang. How can I fix this ? I see this flag here
CMakeFiles/main.dir/flags.make:Fortran_FLAGS = -O3 -g -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -pedantic -fPIC -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Wswitch -Woverloaded-virtual -Qunused-arguments -Wno-unsupported-friend -Wno-unused-parameter -Wno-unused-variable -Wno-undefined-var-template -openmp-simd -std=c++1z -std=c++1z -ftemplate-depth=1024 -Wno-unused-local-typedefs -O0 -ggdb -Wa,--compress-debug-sections
Thanks
praveen