PengZheng edited a comment on pull request #401:
URL: https://github.com/apache/celix/pull/401#issuecomment-1074768328


   > The commands I am using are:
   
   My current work flow is as following:
   ```BASH
   conan install . celix/2.2.3@zhengpeng/testing -if cmake-build-debugwithtests 
--build=missing -pr default_debug -o celix:enable_testing=True
   conan build . -bf cmake-build-debugwithtests/ --configure
   cd cmake-build-debugwithtests
   cmake  ..
   make -j
   ```
   With `-if` all generated file goes into build folder. `conan build`  call 
the `build` method of `conanfile.py`, so that all conan options are translated 
into cmake-build-debugwithtests/CMakeCache.txt, including `CMAKE_BUILD_TYPE`. 
Therefore, we only need to invoke `cmake ..`. This work flow is CLion friendly, 
I can debug all tests easily.
   
   I added a profile for debugging:
   ```
   (conan) $ conan profile show default_debug
   Configuration for profile default_debug:
   
   [settings]
   os=Linux
   os_build=Linux
   arch=x86_64
   arch_build=x86_64
   compiler=gcc
   compiler.version=9
   compiler.libcxx=libstdc++11
   build_type=Debug
   [options]
   [conf]
   [build_requires]
   [env]
   ```
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to