Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

SDK • Re: Defining C defines at the "cmake .." stage

$
0
0
Add the following to your CMakeLists.txt file:

Code:

target_compile_definitions(${PROJECT_NAME} PUBLIC NODENAME=${NODENAME})
Thanks! That seems to work! That just removed a big project issue for me! Thanks!

Statistics: Posted by ChTreczoks — Tue Jul 16, 2024 2:04 pm



Viewing all articles
Browse latest Browse all 3552

Trending Articles