premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.24k stars 619 forks source link

Issues Building Fortran Projects within workspace #2231

Open The-Lord-of-Owls opened 4 months ago

The-Lord-of-Owls commented 4 months ago

What are you trying to do? Trying to setup my premake 5.lua script to build an intel fortran project.

What problem are you having? I'm getting the following Error: invalid value 'intel' for toolset

I was originally following along from this issue which solved the language problem with setting the language to Fortran. But now I'm not sure what to do about the toolset being set to intel. I can't find the UUID to do the same thing that was done with the language

What have you tried so far? I've tried looking elsewhere, at public repos and asking chatGPT for assistance with my config. I have also tried manually searching through an already existing sln for this info that had the type of project that I'm trying to get my premake script to create

What version of Premake are you using? premake-5.0.0-beta2

Anything else we should know? My script is building a solution with with that will have a C++ SharedLib and a Fortran StaticLib. I also have the following in a .bat file that I'm not entirely sure how to make it work with the prior solution yet

premake5 --os=windows --file=BuildProjects.lua vs2022
premake5 --os=macosx --file=BuildProjects.lua gmake
premake5 --os=linux --file=BuildProjects.lua gmake
pause
samsinsane commented 4 months ago

I'm getting the following Error: invalid value 'intel' for toolset

I was originally following along from this issue which solved the language problem with setting the language to Fortran. But now I'm not sure what to do about the toolset being set to intel. I can't find the UUID to do the same thing that was done with the language

What I provided in that issue won't allow you to generate a vfproj file, it will only allow you to include an existing one in the generated sln file. Have a look at how the D module adds support for the D language, the D toolsets and extends some actions (gmake and vs*) to support D projects.