Re: [CMake] Best Practise for Multiple Platforms of External Project

2016-12-13 Thread Craig Scott
You could try using file(MAKE_DIRECTORY ...) between the two ExternalProject_Add() calls to actually ensure the directory exists, but I'm not 100% sure whether this would not interfere with the download step when it goes to do that at build time. I'm pretty sure it works, but you should confirm it.

[CMake] checking for cmake predefined targets

2016-12-13 Thread Dvir Yitzchaki
Hi list. With Visual Studio generator, is there a way, at configuration time, to check for the existence of INSTALL, PACKAGE and RUN_TESTS targets? Seems they only present when the configuration files have an install(), enable_testing() or include(CPack) commands somewhere. I need this informat

[CMake] Best Practise for Multiple Platforms of External Project

2016-12-13 Thread Bo Zhou
Hi In my project I have to compile the same external projects by the different generators, is that possible to handle this cases by ExternalProject_Add ? I tried this way, firstly, just download the repository ExternalProject_Add(OPENEXR_DOWNLOAD PREFIX ${OPENEXR_PREFIX} GIT_REPOSITORY h