Re: [CMake] Change C_INCLUDES in flags.make

2016-11-23 Thread Zlatan
I tried: get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES) set(include_dirs) foreach(it ${cmake_include_directories}) set(include_dirs ${include_dirs} "${it}/") endforeach() set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES "${include_dirs}")

[CMake] FindMPI

2016-11-23 Thread Zaak Beekman
Hi, I want to be able to pass FC=mpif90 (or FC=$(which mpif90)) and CC=mpicc etc. OR also be able to pass a compiler and use FindMPI to add link, compile and include flags. I'm encountering an issue when my MPI implementation is not on my PATH, I want CMake to be able to look in an additional loca

Re: [CMake] Find packages coming from homebrew

2016-11-23 Thread Roger Leigh
On 23/11/16 14:55, Cedric Doucet wrote: Hello, I would like to write some FindFoo.cmake files to find packages installed on different systems including Mac. I have noticed that homebrew install packages in a repertory whose name depends on the version of the package. For example, I have install

Re: [CMake] VS2017 + CMake integration

2016-11-23 Thread Marian Luparu via CMake
Thanks Robert -- this is great feedback Yes, VS ships with a patched 3.6 CMake that includes both changes to find the VS 2017 installation as well as the CMake-Server functionality needed for the IDE services. We have not yet started upstreaming these changes (got totally sidetracked by getting

Re: [CMake] Determine which files have changed during a CMake run

2016-11-23 Thread Michael Jackson
Thanks! This worked for my needs. Ninja said my command line changed. So I used the generated compile_commands.json before and after a cmake run, diff'ed those two files and was able to zero in on the issue. Thanks for the tip. Worked great. Have to store that one away for future use. -- Mike

Re: [CMake] Determine which files have changed during a CMake run

2016-11-23 Thread David Cole via CMake
Using git like that is actually the perfect way to do it if you just want to analyze it manually. I've actually done that with other projects source trees when something seems to appear there even when doing an out of source build... It's a great way to see what's changed (and how) easily. You cou

Re: [CMake] Determine which files have changed during a CMake run

2016-11-23 Thread Craig Scott
Does "ninja -d explain" tell you what you need? On Thu, Nov 24, 2016 at 5:34 AM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > Is there a way to determine which files in my build directory have changed > for a given run of CMake? The use case is that I made what I thought was a > small

[CMake] Determine which files have changed during a CMake run

2016-11-23 Thread Michael Jackson
Is there a way to determine which files in my build directory have changed for a given run of CMake? The use case is that I made what I thought was a small change to my configuration using cmake and when I went to build it was basically a full recompile. During our cmake run we do use configure

Re: [CMake] Find packages coming from homebrew

2016-11-23 Thread Harry Mallon
Hi Cedric, You might be interested in "brew --prefix" which gives you the location of the brew install. e.g. for me. % brew --prefix /usr/local Also brew symlinks the current version of all programs into the "brew --prefix" folder. Do "ls -lah /usr/local/bin" and you should see what I mean. I

[CMake] Find packages coming from homebrew

2016-11-23 Thread Cedric Doucet
Hello, I would like to write some FindFoo.cmake files to find packages installed on different systems including Mac. I have noticed that homebrew install packages in a repertory whose name depends on the version of the package. For example, I have installed a scientific library called scotch