[CMake] ExternalProject_Add ... output directy (sln file directory)

Christophe Demez christophe.demez at luciad.com
Thu Mar 30 11:11:39 EDT 2017


BTW,

I notice this too, if I use the following command line with an empty 
cmakelists.txt file : cmake -G "Visual Studio 15 2017 Win64"

And it also generate the .sln (and other files) in the same folder, but 
I don't request to build such a solution ! right ?

In reality, I only need a cmakelists.txt file that will build an 
external library for Android (Ninja generator, directly from AndroidStudio).
For now I use the wrong generator for test.


On 30/03/2017 16:20, David Cole wrote:
> Do give it a BINARY_DIR, but do NOT give it a BUILD_COMMAND. Giving it
> an empty BUILD_COMMAND means "do nothing" for the build step and using
> "cmake --build ./LibraryBuild" does not work unless cmake is in your
> PATH, and with a Visual Studio solution, you also need to specify
> "--config Release" or "--config Debug"
>
> Also posted on SO.
>
>
> HTH,
> David C.
>
>
>
> On Thu, Mar 30, 2017 at 10:10 AM, Christophe Demez
> <christophe.demez at luciad.com> wrote:
>> Hi,
>>
>> I'm currently using one CMakeLists.txt file that will execute an external
>> CMakeLists.txt (and dependency).
>>
>> For this I use the ExternalProject_Add command, but I can't find a way to
>> specify where the ".sln" file will be generated.
>>
>> I have also created StackOverflow question here with more information, if
>> someone have an idea for a solution ?
>>
>> http://stackoverflow.com/questions/43117117/cmake-use-externalproject-add-and-specify-the-output-folder
>>
>> Thanks
>> --
>>
>> 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 support the CMake community. For more
>> information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/cmake

-- 
Luciad Email Signature *Christophe Demez *
PROJECT LEADER

*LUCIAD* <http://www.luciad.com/> CONNECT •  VISUALIZE •  ANALYZE •  ACT

christophe.demez at luciad.com <mailto:christophe.demez at luciad.com> •  T 
+32 16 23 95 91
Follow us on LinkedIn <https://www.linkedin.com/company/luciad>or 
@LUCIADconnect <http://www.twitter.com/LUCIADconnect>

Luciad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170330/3d2c6b44/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luciad-logo.png
Type: image/png
Size: 2447 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170330/3d2c6b44/attachment.png>


More information about the CMake mailing list