@@ -686,7 +686,7 @@ algorithm
686686 Boolean b;
687687 Boolean needSundials = false ;
688688 String fileprefix;
689- String install_include_dir , install_fmu_sources_dir, fmu_tmp_sources_dir;
689+ String install_include_omc_dir, install_include_omc_c_dir , install_fmu_sources_dir, fmu_tmp_sources_dir;
690690 list< String > sourceFiles, model_desc_src_files;
691691 list< String > dgesv_sources, simrt_c_sundials_sources, simrt_linear_solver_sources, simrt_non_linear_solver_sources;
692692 list< String > simrt_mixed_solver_sources, fmi_export_files, model_gen_files, model_all_gen_files, shared_source_files;
@@ -758,12 +758,13 @@ algorithm
758758 varInfo := simCode. modelInfo. varInfo;
759759
760760
761- install_include_dir := Settings . getInstallationDirectoryPath() + "/include/omc/c/" ;
761+ install_include_omc_dir := Settings . getInstallationDirectoryPath() + "/include/omc/" ;
762+ install_include_omc_c_dir := install_include_omc_dir + "c/" ;
762763 install_fmu_sources_dir := Settings . getInstallationDirectoryPath() + RuntimeSources . fmu_sources_dir;
763764 fmu_tmp_sources_dir := fmutmp + "/sources/" ;
764765
765- // The simrt c headers are in the include directory.
766- copyFiles(RuntimeSources . simrt_c_headers, source= install_include_dir , destination= fmu_tmp_sources_dir);
766+ // The simrt c headers are in the include/omc/c directory.
767+ copyFiles(RuntimeSources . simrt_c_headers, source= install_include_omc_c_dir , destination= fmu_tmp_sources_dir);
767768 // The simrt C source files are installed to the folder specified by RuntimeSources.fmu_sources_dir. Copy them from there.
768769 copyFiles(RuntimeSources . simrt_c_sources, source= install_fmu_sources_dir, destination= fmu_tmp_sources_dir);
769770
@@ -780,7 +781,7 @@ algorithm
780781 // instead of just checking if flags are set only?
781782 if isSome(simCode. fmiSimulationFlags) then
782783 // The sundials headers are in the include directory.
783- copyFiles(RuntimeSources . sundials_headers, source= install_include_dir , destination= fmu_tmp_sources_dir);
784+ copyFiles(RuntimeSources . sundials_headers, source= install_include_omc_dir , destination= fmu_tmp_sources_dir);
784785 copyFiles(RuntimeSources . simrt_c_sundials_sources, source= install_fmu_sources_dir, destination= fmu_tmp_sources_dir);
785786 simrt_c_sundials_sources := RuntimeSources . simrt_c_sundials_sources;
786787 else
@@ -801,7 +802,7 @@ algorithm
801802 // and then then they are installed to include/omc/c/fmi-export for some reason. The source, install, and source fmu location
802803 // for these files should be made consistent. For now to avoid modifing things a lot they are left as they are and copied here.
803804 fmi_export_files := if FMUVersion == "1.0" then RuntimeSources . fmi1Files else RuntimeSources . fmi2Files;
804- copyFiles(fmi_export_files, source= install_include_dir , destination= fmu_tmp_sources_dir);
805+ copyFiles(fmi_export_files, source= install_include_omc_c_dir , destination= fmu_tmp_sources_dir);
805806
806807 System . writeFile(fmutmp+ "/sources/isfmi" + (if FMUVersion == "1.0" then "1" else "2" ), "" );
807808
0 commit comments