Re: [CMake] Can an option enforce a default, even if cache is present?

2018-11-27 Thread frodak
On Tue, Nov 27, 2018 at 3:15 PM Mario Emmenlauer wrote: > > On 27.11.18 17:13, Eric Noulard wrote: > > Le mar. 27 nov. 2018 à 14:50, Mario Emmenlauer > > a écrit : > > Dear all, > > > > I've just discovered that option() behaves differently than I > > anticipa

Re: [CMake] Does CMake support the --question option for GNU Makefiles?

2018-11-27 Thread frodak
I think this is just a misunderstanding and not related to CMake. Make --question mode always returns a 1 if the target is PHONY because these targets are always out of date. The Makefiles generated by CMake use a top level PHONY target (and other PHONY targets as well) zzz@i7-lab:~/temp/bldlibvn

Re: [CMake] Why is obj.dir/depend.make.tmp not renamed to obj.dir/depend.make?

2018-11-07 Thread frodak
Did cmake finish to completion when generating the Makefiles? On Wed, Nov 7, 2018 at 11:46 AM Steffen Dettmer wrote: > Hi, > > One (of really many) build trees contains a file "depend.make.tmp" and > ignores dependencies leading to broken (incremental) builds. There > also is a "depend.make" fil

Re: [CMake] Add Windows library dependency

2018-07-29 Thread frodak
I have a very simple project and just uses two commands: Add_executable( exe_target ... ) Target_link_libraries( exe_target Shlwapi) -- 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 su

Re: [CMake] GLOB_RECURSE

2018-07-25 Thread frodak
I think you want to try for absolute paths: file (GLOB_RECURSE ards ./ArduinoCore/src/*.cpp ./ArduinoCore/src/*.c) file (GLOB_RECURSE apps ./SensorUnit/*.cpp ./SensorUnit/*.c) relative paths from those directories: file (GLOB_RECURSE ards RELATIVE ./ArduinoCore/src/ ./ArduinoCore/src/*.cpp ./Ard