visual studio - CMake - separating project configurations from target configurations -


i have executable, supports 2 rendering backends (gl , d3d), each implemented in separate static library. have project configurations permuted on debug-level (eg. debug, release, etc), , renderer, final configurations (debug_gl, debug_d3d, etc.). in previous question, learned how make per-configuration dependencies.

my problem have additional static libraries, not dependent on renderer type. when create (cmake) project configurations above setting cmake_configuration_types, these static library projects configurations permuted renderer type. not want this, because configurations have separate object/library directories, etc., duplicates.

my main focus generating visual studio, ideally generated solution along renderer backend libraries have full set of permutations, whereas non-renderer specific libraries have 'debug-level' configurations. somehow possible cmake?

configuration set global whole project. each configuration built in own directory. e.g., description of library_output_directory property:

this property specifies directory library target files should built. multi-configuration generators (vs, xcode) append per-configuration subdirectory specified directory.

in other words, any target (e.g., library) built within project cannot shared between different configurations.

if want targets have own configuration set, should move them project. disadvantage of approach is difficult make 1 project being automatically rebuilt while sources project changed.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -