Comments (5)
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.
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.
Well, this is unrelated then, sorry
from premake-core.
Is it related to this issue?
from premake-core.
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)
- Linking starts before any compilation resulting in undefined reference to main function. HOT 5
- CUDA support? HOT 7
- Command line arguments? HOT 7
- <command-line>: error: macro names must be identifiers HOT 11
- XCode does not show linked Libraries HOT 8
- Object File Collision Detection Part II: Visual Studio C++ modules HOT 1
- Premake 6
- [VS] Source Build Help HOT 4
- Error while building Premake 5 on CentOS 7 HOT 6
- xcode4 bug with generated file with same name, but different path
- How to handle conflicting API (in external modules)?
- Issue trying to fix x86 Linux build
- configmap for externalproject does not map correctly HOT 1
- The Makefile generated by `premake5 gmake2` calls `sh.exe` HOT 9
- Api in _preload.lua inaccessible HOT 6
- It would be nice to have better error identification. HOT 3
- Make failing Command Tokens fail the build HOT 1
- Visual Studio "Previous IPDB not found, fall back to full compilation." HOT 3
- Premake system toolset selection issue HOT 5
- Configuration filters don't work correctly for postbuildcommands in C# projects HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from premake-core.