Comments (6)
Perhaps you can clarify some details I have been having about cmake, in the Config.cmake
files generated, should one always specify set({pkg}_FOUND TRUE)
or not? For instance you might end up in situations where a configuration file creates successfully finds the target it is supposed too, but it doesn't return _FOUND=true
, the cmake documentation regarding this is very poor, and I cannot seem to figure out conventions in other packages?
Lastly, I have been focusing on getting the cmake stuff in. And was planning on getting the sub-project part done soonish, so I'll get my hands dirty again and will likely ask you some questions (here) if you don't mind? :)
from fdict.
should one always specify
set({pkg}_FOUND TRUE)
or not?
In principle one does not have to do it. Normally you set <Package>_FOUND=FALSE
when you specify that the import fails. I need to do more testing to confirm why <Package>_FOUND
is not set to TRUE
.
And was planning on getting the sub-project part done soonish, so I'll get my hands dirty again and will likely ask you some questions (here) if you don't mind? :)
Sure thing, feel free to make a PR and I can review and give some tips there.
from fdict.
should one always specify
set({pkg}_FOUND TRUE)
or not?In principle one does not have to do it. Normally you set
<Package>_FOUND=FALSE
when you specify that the import fails. I need to do more testing to confirm why<Package>_FOUND
is not set toTRUE
.
That information would be great, I have just encountered problems where the targets were found, but the _FOUND
was not set (hence false), and then a Warning is issued for the users. This is then wrong... My solution was to never trust _FOUND
but always check for the target...
from fdict.
That information would be great, I have just encountered problems where the targets were found, but the _FOUND was not set (hence false), and then a Warning is issued for the users.
Note that FetchContent
does not do an install()
+ find_package()
, and in that case you need to synchronize the variables set in find_package()
(hence the issue raised here)
from fdict.
Might I ask what you are planning to use fdict for?
from fdict.
Might I ask what you are planning to use fdict for?
I don't know if it's a well-known design pattern, but I'm using this to add a context object/field so it is easier to write extensions in octopus
. I.e. add an arbitrarily typed dictionary which is exactly what this package is doing
from fdict.
Related Issues (20)
- Overload the operator(=), to interface the assign and associate functions HOT 5
- Can't get it to work HOT 3
- How to implement in an example HOT 4
- Error linking the library to another project HOT 9
- Creating the dictionary from a read file HOT 5
- Add c_ptr, c_funptr to variable and dictionary HOT 1
- please provide a pkgconfig HOT 2
- Memory leak when overwriting entries from concat
- README.md clarification/enhancement HOT 4
- problem with install HOT 20
- Compilation error with CRAY compiler HOT 3
- interface which to query contained type field HOT 1
- document cmake building instructions HOT 1
- Fails to build with `ninja-build` HOT 2
- Clarify the api HOT 2
- Using plain C preprocessor instead of fypp? HOT 7
- CI tools HOT 4
- Strongly typed dictionaries HOT 7
- having error in compiling siesta-master HOT 3
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 fdict.