You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
has no effect on the actual compile options. Neither does add_compile_options().
However, if you copy the above code fragment to wgrib2/CMakeLists.txt then the
compiler options are enabled. Seems that
set(CMAKE_XXX_FLAGS,...)
only works for that directory.
cmake version 3.22.1
Ubuntu
The text was updated successfully, but these errors were encountered:
Moving the cmake code that sets the compile options from CMakeLists.txt to wgrib2/CMakeLists.txt.
Merged some of the compile options from the pre-github version of wgrib2 concerning the math model.
In the top level CMakelLists.txt
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel|IntelLLVM)$")
set(CMAKE_Fortran_FLAGS "-g -traceback ${CMAKE_Fortran_FLAGS}")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0")
elseif(CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$")
set(CMAKE_Fortran_FLAGS "-g -fbacktrace ${CMAKE_Fortran_FLAGS}")
set(CMAKE_Fortran_FLAGS_DEBUG "-ggdb -O0")
endif()
has no effect on the actual compile options. Neither does add_compile_options().
However, if you copy the above code fragment to wgrib2/CMakeLists.txt then the
compiler options are enabled. Seems that
set(CMAKE_XXX_FLAGS,...)
only works for that directory.
cmake version 3.22.1
Ubuntu
The text was updated successfully, but these errors were encountered: