Comments (3)
OK, so using the variable_watch
command, I saw the wrong prefix and suffix used to generate LIB_FILE
. Adding the following lines under if(WIN32)
in CMakeCargo.cmake
seems to have solved the issue:
set(CMAKE_STATIC_LIBRARY_PREFIX "")
set(CMAKE_STATIC_LIBRARY_SUFFIX ".lib")
from cmakerust.
can you add proper detection of MinGW to change the expected library suffix, while keeping proper support for MSVC builds?
from cmakerust.
Sure, I'll take a look at that and create a PR soon. I didn't realise MSVC builds used the libxx.a
name format for static libraries.
from cmakerust.
Related Issues (7)
- Unable to install Rust Library targets HOT 4
- Build dynamic libs on Windows Fails(using MSVC)
- Linking broken on Linux x86-64?
- Does not appear to follow target specified in .cargo/config
- I'd like to use this, is there a license associated with it? HOT 4
- How do I generate an executable with this using Cargo? 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 cmakerust.