Re: [CMake] CMAKE_EXPORT_COMPILE_COMMANDS don't work in CMakeLists.txt

2016-12-07 Thread Fabrício Ceolin
Putting set(CMAKE_EXPORT_COMPILE_COMMANDS 1) right above defining target solve the problem. Fabrício Ceolin +55 (31) 98675-1359 MiningMath Associates www.miningmath.com 2016-12-07 8:48 GMT-02:00 Wagner, David : > I've tested this on Ubuntu 15.10 using CMake 3.2.2 > > Where, in the CMakeLists

Re: [CMake] CMAKE_EXPORT_COMPILE_COMMANDS don't work in CMakeLists.txt

2016-12-07 Thread Wagner, David
I've tested this on Ubuntu 15.10 using CMake 3.2.2 Where, in the CMakeLists did you put it? As far as I can tell, it needs to be done before defining the targets for which you want compile commands to be exported. W On 07/12/2016 11:35, Fabrício Ceolin wrote: Hi, Thank you David. Which vers

Re: [CMake] CMAKE_EXPORT_COMPILE_COMMANDS don't work in CMakeLists.txt

2016-12-07 Thread Fabrício Ceolin
Hi, Thank you David. Which version of cmake and operational system are you using? In my CMakeLists.txt file, I tried to set set(CMAKE_EXPORT_COMPILE_COMMANDS 1) and set(CMAKE_EXPORT_COMPILE_COMMANDS ON) without success, unfortunately. Em qua, 7 de dez de 2016 às 08:13, Wagner, David escreveu

Re: [CMake] CMAKE_EXPORT_COMPILE_COMMANDS don't work in CMakeLists.txt

2016-12-07 Thread Wagner, David
On 05/12/2016 12:31, Fabrício Ceolin wrote: 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) withou

[CMake] CMAKE_EXPORT_COMPILE_COMMANDS don't work in CMakeLists.txt

2016-12-05 Thread Fabrício Ceolin
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 li