[CMake] Problems Building a Java Project Under Cygwin

2017-10-28 Thread R0b0t1
What fails is the compile step, like so: javac: file not found: \cygdrive\C\Users\R0b0t1\Documents\Code\project\build\CMakeFiles\project.dir\java_sources (The system cannot find the path specified) Is this due to a change in the path separator? On another note, are there any suggestions for buil

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread J Decker
On Sat, Oct 28, 2017 at 6:10 PM, Carlton Banks wrote: > > Den 29. okt. 2017 kl. 02.06 skrev J Decker : > > I recently added externaproject_add() to download a library, but since it > doesn't do the download until build, I had to put a conditional around the > second part of the cmake that used th

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread J Decker
On Sat, Oct 28, 2017 at 6:15 PM, Craig Scott wrote: > > > On Sun, Oct 29, 2017 at 12:06 PM, J Decker wrote: > >> I recently added externaproject_add() to download a library, but since it >> doesn't do the download until build, I had to put a conditional around the >> second part of the cmake tha

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Carlton Banks
I might have been a tat too fast there.. It doesn’t seem to able to find the /configure script.. and I can’t seem to print the path it looking in.. [ 5%] Building CXX object src/include/spectogram/CMakeFiles/spectogram.dir/spectogram.cpp.o [ 11%] Linking CXX static library libspectogram.a [

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Craig Scott
Your line 25 is incorrect, you left out the MAKE_DIRECTORY part and the path you specified doesn't seem to be right. It should be something more like: file(MAKE_DIRECTORY ${SOURCE_DIR}/include) You also seem to have missed one of my other emails. Replace this: target_include_directories(portau

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Carlton Banks
> Den 29. okt. 2017 kl. 02.20 skrev Craig Scott : > > > > On Sun, Oct 29, 2017 at 12:18 PM, Carlton Banks > wrote: > >> Den 29. okt. 2017 kl. 02.15 skrev Craig Scott > >: >> >> file(MAKE_DIRECTORY) > Not sure about the workaround.. t

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Craig Scott
On Sun, Oct 29, 2017 at 12:18 PM, Carlton Banks wrote: > > Den 29. okt. 2017 kl. 02.15 skrev Craig Scott : > > file(MAKE_DIRECTORY) > > Not sure about the workaround.. the problem here is that cmake does not > download, and make does. > So adding a workaround like that, would require to add a co

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Carlton Banks
> Den 29. okt. 2017 kl. 02.15 skrev Craig Scott : > > file(MAKE_DIRECTORY) Not sure about the workaround.. the problem here is that cmake does not download, and make does. So adding a workaround like that, would require to add a condition that differentiates between cmake and make.. -- Powe

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Craig Scott
On Sun, Oct 29, 2017 at 12:06 PM, J Decker wrote: > I recently added externaproject_add() to download a library, but since it > doesn't do the download until build, I had to put a conditional around the > second part of the cmake that used the libraries it produced so it would do > a cmake config

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Carlton Banks
> Den 29. okt. 2017 kl. 02.06 skrev J Decker : > > I recently added externaproject_add() to download a library, but since it > doesn't do the download until build, I had to put a conditional around the > second part of the cmake that used the libraries it produced so it would do a > cmake conf

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread J Decker
I recently added externaproject_add() to download a library, but since it doesn't do the download until build, I had to put a conditional around the second part of the cmake that used the libraries it produced so it would do a cmake configure/generate, cmake build, cmake configure/generate and a fi

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Craig Scott
Ah, sorry. This particular problem has been fixed on CMake master, but it won't be in the 3.10 release (in release candidate stage), so that isn't going to help you right now. Possibly you might be able to modify the relevant target prope

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Carlton Banks
> Den 29. okt. 2017 kl. 02.29 skrev Craig Scott : > > > > On Sun, Oct 29, 2017 at 11:26 AM, Carlton Banks > wrote: > CMake Error at src/include/record/CMakeLists.txt:28 > (target_include_directories): > Cannot specify include directories for imported target "portau

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Craig Scott
On Sun, Oct 29, 2017 at 11:26 AM, Carlton Banks wrote: > CMake Error at src/include/record/CMakeLists.txt:28 > (target_include_directories): > Cannot specify include directories for imported target "portaudio". > > > is the problem that externalProject_add only is executed when make is > execut

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Carlton Banks
CMake Error at src/include/record/CMakeLists.txt:28 (target_include_directories): Cannot specify include directories for imported target "portaudio". is the problem that externalProject_add only is executed when make is executed and not when cmake is executed’? what is `portaudio` here referr

Re: [CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Craig Scott
On Sun, Oct 29, 2017 at 10:36 AM, Carlton Banks wrote: > I seem to have some problems executing one of my submodules cmakelist. > > MESSAGE(“In record CMAKELIST”) > > # Include externalproject {portaudio} if lib/portaudio don't exist. > MESSAGE(“Download external project”) > > INCLUDE(ExternalPro

[CMake] does cmake scripts execute sequentially?

2017-10-28 Thread Carlton Banks
I seem to have some problems executing one of my submodules cmakelist. MESSAGE(“In record CMAKELIST”) # Include externalproject {portaudio} if lib/portaudio don't exist. MESSAGE(“Download external project”) INCLUDE(ExternalProject) ExternalProject_Add(project_portaudio GIT_REPOSITORY

Re: [CMake] How to find dll's on Cygwin? (fwd)

2017-10-28 Thread Alan W. Irwin
On 2017-10-28 16:44+0200 Marco Atzeri wrote: On 28/10/2017 05:38, Alan W. Irwin wrote: On 2017-10-27 22:31+0200 Marco Atzeri wrote: On 27/10/2017 09:32, Alan W. Irwin wrote: Our understanding is the Cygwin naming convention for the various kinds of libraries would be (in the gnat library ca

Re: [CMake] Change compiler for certain files in the project

2017-10-28 Thread P F via CMake
> On Oct 28, 2017, at 9:50 AM, Aaron Boxer wrote: > > Hello, > > I have a cmake project on linux, and I would like to change the compiler > for certain files from g++ to another, llvm-based compiler called hcc. > (hcc is AMDs HIP compiler for GPGPU) > > > Is there a way of doing this in my c

[CMake] Change compiler for certain files in the project

2017-10-28 Thread Aaron Boxer
Hello, I have a cmake project on linux, and I would like to change the compiler for certain files from g++ to another, llvm-based compiler called hcc. (hcc is AMDs HIP compiler for GPGPU) Is there a way of doing this in my cmake file ? Thanks, Aaron -- Powered by www.kitware.com Please keep

Re: [CMake] How to find dll's on Cygwin? (fwd)

2017-10-28 Thread Marco Atzeri
On 28/10/2017 05:38, Alan W. Irwin wrote: On 2017-10-27 22:31+0200 Marco Atzeri wrote: On 27/10/2017 09:32, Alan W. Irwin wrote: Our understanding is the Cygwin naming convention for the various kinds of libraries would be (in the gnat library case) dll   cyggnat-6.dll import lib

Re: [CMake] Problem measuring coverage in CTest scripts

2017-10-28 Thread Anonymous Maarten
I've searched in the history of the mailing list and I think it's the same problem as this one: https://public.kitware.com/pipermail/cmake/2017-September/066176.html I cannot use the Ninja generator in my script. When I change the generator to 'Unix Makefiles', the coverage works. Thanks for resp

Re: [CMake] How to find dll's on Cygwin? (fwd)

2017-10-28 Thread Clément Gregoire
Hi, I think you are looking for fixup_bundle if you are missing DLLs at install. There's no real need to look for the DLLs yourself. Lectem Le sam. 28 oct. 2017 à 08:18, Hendrik Sattler a écrit : > Hi, > > looking at the location of the gnat static library, it seems to be a > compiler library

Re: [CMake] Problem measuring coverage in CTest scripts

2017-10-28 Thread Clément Gregoire
No since the point of cmake scripts is to build the project (for CI basically). I'm not sure what happens but I remember people having issues when using ninja? I'm not sure. You can have a look at https://github.com/Lectem/cpp-boilerplate I use a Ctest script for my Travis coverage build. The sc