Skip to content

Commit

Permalink
Revise CMake formatting (#247)
Browse files Browse the repository at this point in the history
Resolves #246 (Revise CMake formatting).
  • Loading branch information
apcountryman authored Apr 13, 2024
1 parent 956769f commit 3fd283b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,26 @@ project( avr-libcpp

# general configuration

option(
AVRLIBCPP_SUPPRESS_SFR_MACROS
option( AVRLIBCPP_SUPPRESS_SFR_MACROS
"avr-libcpp: Suppress SFR macros."
OFF
)

# CMake modules configuration
list(
APPEND CMAKE_MODULE_PATH
list( APPEND CMAKE_MODULE_PATH
"${PROJECT_SOURCE_DIR}/cmake/modules/cmake-utilities"
)

# compilation and linking configuration
if( PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR )
set( CMAKE_CXX_STANDARD 17 )

set(
AVRLIBCPP_MCU
set( AVRLIBCPP_MCU
"" CACHE STRING
"avr-libcpp: MCU type."
)
set(
AVRLIBCPP_DFP

set( AVRLIBCPP_DFP
"" CACHE STRING
"avr-libcpp: DFP submodule name."
)
Expand Down

0 comments on commit 3fd283b

Please sign in to comment.