Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

premake5 alpha 3 generate vs2010 project on vs2013 solution #93

Closed
scardin opened this issue Jun 5, 2015 · 5 comments
Closed

premake5 alpha 3 generate vs2010 project on vs2013 solution #93

scardin opened this issue Jun 5, 2015 · 5 comments

Comments

@scardin
Copy link

scardin commented Jun 5, 2015

Hello,

I've just created 3 project calling "premake5 vs2013"

in the solution I have 2 project which works perfectly fine and one which have the platform toolset option set to visual 2010 (not installed on my machine).

Has anyone seen this issue? Is there a work around?

@Meoo
Copy link
Contributor

Meoo commented Jun 5, 2015

We had this problem when we replaced a "configuration" by a "filter" where we did not specify prefixes (so it used the default "configuration:" prefix instead of the "options:" which we needed)
Maybe this info can help you...

@scardin
Copy link
Author

scardin commented Jun 5, 2015

Ok it is really wierd since the premake5.lua file in the root directory sets the configuration

solution "mm"
configurations {"Debug", "Release"}
location "build"
platforms {"Win32","Win64"}

filter { "platforms:Win32" }
    system "Windows"
    architecture "x32"

filter { "platforms:Win64" }
    system "Windows"
    architecture "x64"

filter "configurations:Debug"
  defines { "DEBUG" }
  flags { "Symbols" }

filter "configurations:Release"
  defines { "NDEBUG" }
  optimize "On"

And the premake file in the local directory looks like this for the 2 project that works:

project "mmlog"
kind "StaticLib"
language "C++"
files {"mmlog.h", "mmlog.cpp"}
links {"mmbase"}
targetdir (build_path .. lib_folder)

project "mmlog_usage"
kind "ConsoleApp"
language "C++"
files {"mmlog_usage.cpp"}
links {"mmlog"}
targetdir (build_path .. bin_folder)

and like this for the one that cause the issue:

project "mmbase"
kind "StaticLib"
language "C++"
files {"mmbase.h"}
targetdir (build_path .. lib_folder)

@Meoo
Copy link
Contributor

Meoo commented Jun 5, 2015

Well, this is unrelated then, sorry

@starkos
Copy link
Member

starkos commented Jun 5, 2015

Is it related to this issue?

@scardin
Copy link
Author

scardin commented Jun 6, 2015

Yes it is exactly this

The main issue was my lib currently only contain .h file, I added a dummy cpp file and it solved the problem.

Thanks

samsinsane added a commit to LORgames/premake-core that referenced this issue Aug 24, 2015
samsinsane added a commit to LORgames/premake-core that referenced this issue Sep 15, 2015
tvandijck pushed a commit to Blizzard/premake-core that referenced this issue May 1, 2017
tvandijck pushed a commit to Blizzard/premake-core that referenced this issue May 2, 2017
tvandijck pushed a commit to Blizzard/premake-core that referenced this issue Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants