Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Spooks4576 committed Oct 31, 2024
1 parent 9fcf025 commit b431446
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ add_link_options("-Wl,-z,muldefs")


if(DEFINED ENV{FLAPPY_GHOST_WEB_HOOK})
add_compile_definitions(FLAPPY_GHOST_WEB_HOOK=\"${ENV{FLAPPY_GHOST_WEB_HOOK}}\")
set(FLAPPY_GHOST_WEB_HOOK "$ENV{FLAPPY_GHOST_WEB_HOOK}")
# Pass it to add_compile_definitions with proper string quoting
add_compile_definitions(FLAPPY_GHOST_WEB_HOOK=\"${FLAPPY_GHOST_WEB_HOOK}\")
endif()

# LED configuration
Expand Down

0 comments on commit b431446

Please sign in to comment.