Skip to content

Commit

Permalink
fixed CMakeLists indent and cleaned up tetris CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjmux committed May 4, 2024
1 parent e0d3978 commit 3ce6f2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# ESP-IDF component line
if(ESP_PLATFORM)
idf_component_register(SRCS "tetris/tetris.c"
INCLUDE_DIRS "tetris")

return()
message(FATAL_ERROR "should not reach during idf build!!!")
idf_component_register(SRCS "tetris/tetris.c"
INCLUDE_DIRS "tetris")
return()
message(FATAL_ERROR "should not reach during idf build!!!")
endif()


Expand Down
2 changes: 0 additions & 2 deletions tetris/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# CMakeLists for tetris game library

#cmake_minimum_required(VERSION 3.16)
#project(tetris VERSION 0.1 LANGUAGES C)


add_library(tetris STATIC tetris.c)
Expand Down

0 comments on commit 3ce6f2f

Please sign in to comment.