Comments (4)
For CTK, we could check for the file CTK-build/build_options.cmake (for example).
During superbuild, if the file does not exist, we use default value (or the current cache values) for the CTK_[APP|LIB|PLUGIN]_* variables.
When configuring the "real" project (the CTK-build dir), we generate the contents for CTK-build/build_options.cmake containing "set(CTK_* ... CACHE FORCE)" statements.
During superbuild configure-time, if the file exists, we just read it in.
Could that work?
from ctk.
Good idea
Within CTK-build, instead of creating an other file (build_options.cmake), the superbuild system could just extract the value within CTK-build/CMakeCache.cmake using regular expression.
This could be done by adding a macro name SUPERBUILD_OPTION() that could be used instead of OPTION()
from ctk.
Yes, I thought about that too. I think my only concern back then was speed, especially under Windows. I love how fast the superbuild configure step is. Parsing the CMakeCache.txt file potentially a lot of times maybe slow - but maybe not (we should try it out). It would certainly be more elegant.
from ctk.
Closing this issue since it not been updated in the past 3 years.
from ctk.
Related Issues (20)
- Issues with the use of multiple plugins for publishing and subscribing HOT 1
- CMAKE_INSTALL_PREFIX Not work on new Version HOT 3
- Build Problem HOT 1
- CTK:生成插件时,需要第三方库opencv 或者oNNXRuntime时,生成插件失败,如何解决? HOT 1
- Should be checking return code from QSqlQuery::exec
- found a bug in the file CTK/Plugins/org.commontk.eventadmin/tasks /ctkEASyncDeliverTasks.tpp HOT 1
- ctkRangeWidget, ctkDoubleRangeSlider setValue(), setRange() issues HOT 1
- How to appropriately use ctkPluginFrameworkLauncher::stop()
- Roadmap list of issues/enhancements for Visual DICOM Browser HOT 23
- Add issue template for creating CTK release
- CTKConfig.cmake includes ctkFunctionGeneratePluginUseFile.cmake but this file isn't installed HOT 1
- Improve ctkLanguageComboBox adding a special item called "Default" HOT 1
- "SQL worked" messages on the console HOT 8
- Event Admin plugin spams debug messages on initialization
- Can't build on linux with current slicer instructions HOT 10
- static Build issue
- ctkCollapsibleGroupBox Arrows Missing
- DICOM tag string handling issues
- Multiple CTK instance call with other with IPC
- 想问这个框架许可证的情况 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 ctk.