[CMake] does cmake scripts execute sequentially?

Carlton Banks noflaco at gmail.com
Sat Oct 28 21:27:04 EDT 2017


> Den 29. okt. 2017 kl. 02.20 skrev Craig Scott <craig.scott at crascit.com>:
> 
> 
> 
> On Sun, Oct 29, 2017 at 12:18 PM, Carlton Banks <noflaco at gmail.com <mailto:noflaco at gmail.com>> wrote:
> 
>> Den 29. okt. 2017 kl. 02.15 skrev Craig Scott <craig.scott at crascit.com <mailto:craig.scott at crascit.com>>:
>> 
>>  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.. 
> 
> No condition should be needed, simply add it to CMakeLists.txt before the command that adds the directory to the include path. The external make build shouldn't complain if the path already exists, it will just go ahead and populate it. At least, that's been my experience when I've used this workaround before for this very problem.
> 
It somehow still causes some problems.. 


https://pastebin.com/HqE5H95Q <https://pastebin.com/HqE5H95Q>

Gives me this error: 

cmake ..
“InsrcCMAKELIST”
“InincludeCMAKELIST”
“IndatabaseCMAKELIST”
“InmatchCMAKELIST”
“InrecordCMAKELIST”
“Downloadexternalproject”
CMake Error at src/include/record/CMakeLists.txt:25 (file):
  file must be called with at least two arguments.


CMake Error at src/include/record/CMakeLists.txt:32 (target_include_directories):
  Cannot specify include directories for imported target "portaudio".


“InspectogramCMAKELIST”
-- Configuring incomplete, errors occurred!
See also "/Users/keerthikanratnarajah/soundcloud/build/CMakeFiles/CMakeOutput.log".

> 
> -- 
> Craig Scott
> Melbourne, Australia
> https://crascit.com <https://crascit.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171029/a7024f78/attachment.html>


More information about the CMake mailing list