Use target compiler for generating lua exported definitions (#7186)
commitbf1198cf8c1fb7880dc63990b5600fc4b71e9f10
authorAlberto García Hierro <alberto@garciahierro.com>
Tue, 17 Dec 2019 10:57:40 +0000 (17 10:57 +0000)
committerBertrand Songis <bsongis@gmail.com>
Tue, 17 Dec 2019 10:57:40 +0000 (17 11:57 +0100)
treed559d73d663e1aecf5b0145948833c807535224d
parent12ab16718dab39d7457468ff659688295f46760e
Use target compiler for generating lua exported definitions (#7186)

Include the lua subdirectory only after CMAKE_C_COMPILER has been
set to the cross compiler. Otherwise, cmake will use the build machine
compiler to preprocess dataconstants.h, which breaks on some systems
and can cause problems due to different machine dependent types.
radio/src/CMakeLists.txt