I typically "set(CMAKE_Fortran_FLAGS ...)" variable in my CMake project to set compile flags for all Fortran targets. Is this undesired practice? I haven't had any problems using multiple compilers, *except* for Intel Ifort on Windows. Ifort on Linux is fine. Here are the flags that CMake auto-sets for Ifort Windows in CMAKE_Fortran_FLAGS:
"/W1 /nologo /fpp /libs:dll" The flag my project needs and that CMake auto-sets is "/libs:dll" I can workaround this issue by just appending those flags to my flags in CMAKE_Fortran_FLAGS. * should I not be setting CMAKE_Fortran_FLAGS manually? * Is this a CMake "bug" for Ifort on Windows? * CMake with Ifort on Linux also auto-sets compiler flags like "-fpp" but doesn't put them in CMAKE_Fortran_FLAGS. -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information on each offering, please visit https://cmake.org/services Visit other Kitware open-source projects at https://www.kitware.com/platforms Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake This mailing list is deprecated in favor of https://discourse.cmake.org