@@ -82,7 +82,7 @@ module fpm_compiler
8282 ! > Path to the C compiler
8383 character (len= :), allocatable :: cc
8484 ! > Path to the C++ compiler
85- character (len= :), allocatable :: cppc
85+ character (len= :), allocatable :: cxx
8686 ! > Print all commands
8787 logical :: echo = .true.
8888 ! > Verbose output of command
@@ -816,7 +816,7 @@ subroutine new_compiler(self, fc, cc, cppc, echo, verbose)
816816 self% cc = cc
817817 else
818818 call get_default_c_compiler(self% fc, self% cc)
819- call get_default_cpp_compiler(self% fc, self% cppc )
819+ call get_default_cpp_compiler(self% fc, self% cxx )
820820 end if
821821end subroutine new_compiler
822822
@@ -923,7 +923,7 @@ subroutine compile_cpp(self, input, output, args, log_file, stat)
923923 ! > Status flag
924924 integer , intent (out ) :: stat
925925
926- call run(self% cppc // " -c " // input // " " // args // " -o " // output, &
926+ call run(self% cxx // " -c " // input // " " // args // " -o " // output, &
927927 & echo= self% echo, verbose= self% verbose, redirect= log_file, exitstat= stat)
928928end subroutine compile_cpp
929929
0 commit comments