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

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})

Statistics: Posted by Memotech Bill — Tue Jul 16, 2024 1:28 pm



Viewing all articles
Browse latest Browse all 5001

Trending Articles