Skip to content

Commit

Permalink
Fixed CMakeLists.txt for Pi Pico
Browse files Browse the repository at this point in the history
  • Loading branch information
visrealm committed Sep 21, 2023
1 parent e1c3153 commit a5a1596
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ if (NOT BUILD_SHARED_LIBS)
add_definitions(-DVR_EMU_TMS9918_STATIC)
endif()

if (PROJECT_IS_TOP_LEVEL)
if(MSVC)
add_compile_options(/W4 /WX)
add_compile_options(/arch:AVX2 /Ox)
else()
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
add_compile_options(-march=native)
endif()
if(MSVC)
add_compile_options(/W4 /WX)
add_compile_options(/arch:AVX2 /Ox)
else()
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
if (UNIX)
add_compile_options(-march=native)
endif()
endif()

include(CTest)
Expand Down

0 comments on commit a5a1596

Please sign in to comment.