Skip to content

Commit

Permalink
don't override user input about RF24_DRIVER in cmake
Browse files Browse the repository at this point in the history
when not using an env var to set RF24_DRIVER
  • Loading branch information
2bndy5 committed Apr 5, 2024
1 parent 8e996a6 commit fa3c7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/AutoConfig_RF24_DRIVER.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endif()
if(DEFINED ENV{RF24_DRIVER})
message(STATUS "RF24_DRIVER (set from env var) = $ENV{RF24_DRIVER}")
set(RF24_DRIVER $ENV{RF24_DRIVER} CACHE STRING "" FORCE)
else()
elseif(${RF24_DRIVER} STREQUAL "UNKNOWN")
set(RF24_DRIVER SPIDEV CACHE STRING "using folder /utility/SPIDEV" FORCE)
endif()

Expand Down

0 comments on commit fa3c7af

Please sign in to comment.