[CMake] Embedded build using ExternalProject

Torsten at Robitzki.de Torsten at Robitzki.de
Wed Jun 26 16:55:39 EDT 2019



> Am 26.06.2019 um 20:07 schrieb Hendrik Sattler <post at hendrik-sattler.de>:
> 
>>   ExternalProject_Add(firmware_binaries
>>       SOURCE_DIR  ${CMAKE_CURRENT_LIST_DIR}/source
>>       INSTALL_DIR ${installDir}
>>       CMAKE_ARGS
>>           -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
>>           -DBOOTLOADER_AES_KEY=${BOOTLOADER_AES_KEY}
>>           -DBOOTLOADER_VERSION=${BOOTLOADER_VERSION}
>>           -DBUILD_DEBUG=1
>>           -DBUILD_NRF52=1
>> BUILD_COMMAND ${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR}
>> --target firmware_binaries
>>   )
> 
> The build command is using the wrong directory.

Yes, thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://cmake.org/pipermail/cmake/attachments/20190626/a70f8c37/attachment.sig>


More information about the CMake mailing list