Appreciate the guidance. In the VS2017 command window, before ‘pgi.bat’ no surprise that ‘which pgfortan’ comes back negative…but after ‘pgi.bat’ it displays the correct pgfortan.exe and path.
Here is the CMakeError.log
Compiling the Fortran compiler identification source file “CMakeFortranCompilerId.F” failed.
Compiler: C:/Program Files/PGI/win64/18.10/bin/pgfortran.exe
Build flags:
Id flags:
The output was:
1
Microsoft Visual Studio 2017 Version 15.0.28307.145.
Copyright (C) Microsoft Corp. All rights reserved.
The license for Visual Studio expires in 26 days.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
1>Error: The operation could not be completed. Unspecified error
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Compiling the Fortran compiler identification source file “CMakeFortranCompilerId.F” failed.
Compiler: C:/Program Files/PGI/win64/18.10/bin/pgfortran.exe
Build flags:
Id flags:
The output was:
1
Microsoft Visual Studio 2017 Version 15.0.28307.145.
Copyright (C) Microsoft Corp. All rights reserved.
The license for Visual Studio expires in 26 days.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
1>Error: The operation could not be completed. Unspecified error
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Checking whether the Fortran compiler is Compaq using “-what” did not match “Compaq Visual Fortran”:
pgfortran-Error-Unknown switch: -what
Checking whether the Fortran compiler is NAG using “-V” did not match “NAG Fortran Compiler”:
pgfortran 18.10-0 64-bit target on x86-64 Windows -tp haswell
PGI Compilers and Tools
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
Checking whether the Fortran compiler is Compaq using “-what” did not match “Compaq Visual Fortran”:
pgfortran-Error-Unknown switch: -what
Checking whether the Fortran compiler is NAG using “-V” did not match “NAG Fortran Compiler”:
pgfortran 18.10-0 64-bit target on x86-64 Windows -tp haswell
PGI Compilers and Tools
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
Determining if the Fortran compiler works failed with the following output:
Change Dir: C:/Users/goodwin/ELAMmodel/ELAMsourceCode/build/CMakeFiles/CMakeTmp
Run Build Command:“C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/devenv.com” “CMAKE_TRY_COMPILE.sln” “/build” “Debug” “/project” “cmTC_5b3c8”
Microsoft Visual Studio 2017 Version 15.0.28307.145.
Copyright (C) Microsoft Corp. All rights reserved.
The license for Visual Studio expires in 26 days.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
Package ‘IFLangServicePackage’ failed to load.
1>Error: The operation could not be completed. Unspecified error
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========