Hi, let say I have C library and I wish set difference "-D" options to this library ( must recompile library ) and exe should not known about those options.
Scheme: lib + -DFEATURE1 && -DFEATURE2 -> lib with FEATURES 1 & 2 -> exe0 lib + -DFEATURE2 && -DFEATURE3 -> lib with FEATURES 2 & 3 -> exe1 Solutions which I found: 1) Linking each exeN with libraries separated by names: lib_f1_f2 ... fn -> exeN. 2) Create configuration ( f1_f2_conf.c file ) file which will generated by CMake for each case exeN. Maybe there are more better solutions? -- *Regard,Soshnikov Vasily mailto:[email protected] <[email protected]>*
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
