@@ -74,7 +74,7 @@ module fpm_command_line
7474 logical :: prune= .true.
7575 character (len= :),allocatable :: compiler
7676 character (len= :),allocatable :: c_compiler
77- character (len= :),allocatable :: cpp_compiler
77+ character (len= :),allocatable :: cxx_compiler
7878 character (len= :),allocatable :: archiver
7979 character (len= :),allocatable :: profile
8080 character (len= :),allocatable :: flag
@@ -199,7 +199,7 @@ subroutine get_command_line_settings(cmd_settings)
199199 logical :: unix
200200 type (fpm_install_settings), allocatable :: install_settings
201201 character (len= :), allocatable :: common_args, compiler_args, run_args, working_dir, &
202- & c_compiler, cpp_compiler , archiver
202+ & c_compiler, cxx_compiler , archiver
203203
204204 character (len=* ), parameter :: fc_env = " FC" , cc_env = " CC" , ar_env = " AR" , &
205205 & fflags_env = " FFLAGS" , cflags_env = " CFLAGS" , cxxflags_env = " CXXFLAGS" , ldflags_env = " LDFLAGS" , &
@@ -248,7 +248,7 @@ subroutine get_command_line_settings(cmd_settings)
248248 ' --no-prune F' // &
249249 ' --compiler "' // get_fpm_env(fc_env, fc_default)// ' "' // &
250250 ' --c-compiler "' // get_fpm_env(cc_env, cc_default)// ' "' // &
251- ' --cpp -compiler "' // get_fpm_env(cxx_env, cxx_default)// ' "' // &
251+ ' --cxx -compiler "' // get_fpm_env(cxx_env, cxx_default)// ' "' // &
252252 ' --archiver "' // get_fpm_env(ar_env, ar_default)// ' "' // &
253253 ' --flag:: "' // get_fpm_env(fflags_env, flags_default)// ' "' // &
254254 ' --c-flag:: "' // get_fpm_env(cflags_env, flags_default)// ' "' // &
@@ -291,7 +291,7 @@ subroutine get_command_line_settings(cmd_settings)
291291 enddo
292292
293293 c_compiler = sget(' c-compiler' )
294- cpp_compiler = sget(' cpp -compiler' )
294+ cxx_compiler = sget(' cxx -compiler' )
295295 archiver = sget(' archiver' )
296296 allocate (fpm_run_settings :: cmd_settings)
297297 val_runner= sget(' runner' )
@@ -324,7 +324,7 @@ subroutine get_command_line_settings(cmd_settings)
324324 call check_build_vals()
325325
326326 c_compiler = sget(' c-compiler' )
327- cpp_compiler = sget(' cpp -compiler' )
327+ cxx_compiler = sget(' cxx -compiler' )
328328 archiver = sget(' archiver' )
329329 allocate ( fpm_build_settings :: cmd_settings )
330330 cmd_settings= fpm_build_settings( &
@@ -479,7 +479,7 @@ subroutine get_command_line_settings(cmd_settings)
479479 call check_build_vals()
480480
481481 c_compiler = sget(' c-compiler' )
482- cpp_compiler = sget(' cpp -compiler' )
482+ cxx_compiler = sget(' cxx -compiler' )
483483 archiver = sget(' archiver' )
484484 allocate (install_settings)
485485 install_settings = fpm_install_settings(&
@@ -534,7 +534,7 @@ subroutine get_command_line_settings(cmd_settings)
534534 enddo
535535
536536 c_compiler = sget(' c-compiler' )
537- cpp_compiler = sget(' cpp -compiler' )
537+ cxx_compiler = sget(' cxx -compiler' )
538538 archiver = sget(' archiver' )
539539 allocate (fpm_test_settings :: cmd_settings)
540540 val_runner= sget(' runner' )
0 commit comments