Hi, I am trying to put set(CMAKE_EXPORT_COMPILE_COMMANDS ,1) inside a toolchain file but the command has no effect there. I've tried to put it in CMakeLists.txt too using the previosly set and add_definitions(-DCMAKE_EXPORT_COMPILE_COMMANDS=1) without success.
The command only works in command line, when I put -DCMAKE_EXPORT_COMPILE_COMMANDS=1 in cmake args. I am using ubuntu 16.04 with cmake 3.5.1 from ubuntu (3.5.1-1ubuntu1). Is it possible to use CMAKE_EXPORT_COMPILE_COMMANDS inside external toolchain file (using args -DCMAKE_TOOLCHAIN_FILE=<filename>.cmake) or in CMakeLists.txt? Thanks, Fabrício Ceolin +55 (31) 98675-1359 MiningMath Associates www.miningmath.com
-- 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
