On 12/15/2016 09:10 PM, Daniel Carrera wrote: > set(CMAKE_Fortran_PREPROCESS_SOURCE > "<CMAKE_Fortran_COMPILER> -Mpreprocess <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>") > > I added that line to PGI-Fortran.cmake and it seems to work. Great! I'll integrate that for CMake 3.8. Thanks, -Brad