Comments (9)
Yes, there is. CMake is utter shit.
from sol2.
That's neither an answer, nor helpful.
from sol2.
It is the answer The Lounge (and, by membership, ThePhD) will give you
from sol2.
Erm... Lounge affiliation or not, as I explained in #23, using CMake is not practical because this library doesn't have any build steps.
from sol2.
Out of curiosity, what're you trying to "build" with Sol
? Is it just the automation of finding the right lua version to get bundled with it? IMHO, I would like that to be the user's choice, and not a feature (and eventual problem) we have to graft onto the library (as Sol
is meant to be lua-version-agnostic, for the most part).
from sol2.
My research (for my masters.. not as the PhD level 😉) has Lua as a primary component and needs to be tested and run cross-platform. So, finding Lua is always a pain. This is something CMake does really well.
from sol2.
Oh, and I just re-read what you wrote about Lua versions, you're correct. The Lua Version is only required when building the tests or examples. Otherwise, it never asks nor requires it. That being said, I would figure Intellisense and other tools when developing sol2 would have some problems if you didn't.
from sol2.
After thinking about this a bit more, I think I'm going to have to stick with the python. The primary reason is that it's simple and will continue to be for automating our test suite. I also want to be careful because, when we hit the 2.0.0 tag (probably in the next 2 weeks), what the release story will be is literally is:
"We ran single.py and you just need to download the amalgamated sol.hpp
to get going. Put it anywhere you like. Enjoy."
CMake doesn't really help with that story, so in the end it'd just be something that we use to run our tests... so then we have to ask ourselves "is this something we want for running the tests / examples?"
And at the moment... nah, not really. Though I can see how easy it is to get going, I am unfortunately not very good at CMake and am focusing on writing the docs / preparing for v2.0.0 release. We'll keep the python zaniness for now, and just request that users who want to do things like find the right Lua version should consult their specific platform / build system for it.
from sol2.
As a last attempt to change your mind, since I need to be using this for the foreseen future, I don't mind maintaining the build.
I hadn't got around to it, but I was planning on adding the single header to cmake. I think what stopped me was the script is currently broken.
from sol2.
Related Issues (20)
- Accessing containers of usertypes seems very slow HOT 8
- How can I create a coroutine with yield purely in C++?
- Get function signature in C++ HOT 6
- How can I use usertype with metatable to set the global table? HOT 2
- Error binding global `std::string/std::string_view` or custom string-like usertype with `sol::var`
- `usertype_container.hpp`: replace `std::input_iterator_tag`/`std::random_access_iterator_tag` with template type parameters. HOT 1
- Binary/Executable size reduction and the removal of simple_usertype
- No error on argument type mismatch for optional with SOL_SAFE_NUMERICS
- in sol3 an error occurs when working with 64-bit numbers HOT 2
- How to return a Lua table from a C++ function? HOT 1
- Unique table identifier? HOT 2
- Critical: std::shared_ptr wrong type dispatch on MSVC Release HOT 1
- How to return anything from a function in Sol3? HOT 2
- How can I create a usertype but override certain returned properties as raw getter functions? HOT 5
- Accessing Lua self object from a C++ function HOT 4
- Trying to create a new user type HOT 5
- sol::optional does not support copy construction of non trivially copyable types with const modifier
- Create a namespace table with functions HOT 1
- why is get_type return userdata?
- Build with emscripten? HOT 2
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 sol2.