Giter Site home page Giter Site logo

Comments (5)

Meoo avatar Meoo commented on July 22, 2024

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...

from premake-core.

scardin avatar scardin commented on July 22, 2024

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)

from premake-core.

Meoo avatar Meoo commented on July 22, 2024

Well, this is unrelated then, sorry

from premake-core.

starkos avatar starkos commented on July 22, 2024

Is it related to this issue?

from premake-core.

scardin avatar scardin commented on July 22, 2024

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

from premake-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.