Skip to content

Commit

Permalink
Fix for Python CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperJappie08 committed Nov 13, 2024
1 parent d5bd8c6 commit 28342da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Minimum required CMake version
cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wswitch-enum") # -Wall -Wextra
# -Wpedantic -Werror")

# Project name
project(tmx_cpp)

Expand Down Expand Up @@ -38,6 +36,15 @@ target_link_libraries(tmx_cpp Boost::system Boost::thread async_serial)
add_executable(${PROJECT_NAME}_test_serialization
test/test_serialization.cpp
)

set_property(TARGET tmx_cpp ${PROJECT_NAME}_test_serialization PROPERTY CXX_STANDARD 20)
# set_target_properties(tmx_cpp ${PROJECT_NAME}_test_serialization
# PROPERTIES CXX_STANDARD 20
# CMAKE_CXX_FLAGS )
set_property(TARGET tmx_cpp ${PROJECT_NAME}_test_serialization APPEND PROPERTY CMAKE_CXX_FLAGS "-Wswitch-enum") # -Wall -Wextra
# -Wpedantic -Werror")


target_link_libraries(${PROJECT_NAME}_test_serialization tmx_cpp)

add_test(NAME test_serialization
Expand Down
4 changes: 2 additions & 2 deletions libs/async_serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ cmake_minimum_required(VERSION 3.1)
project(async_serial)

## Target
set(CMAKE_CXX_STANDARD 11)

include_directories(include/)

add_library(${PROJECT_NAME} STATIC src/AsyncSerial.cpp src/BufferedAsyncSerial.cpp)

set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)

## Link libraries
set(BOOST_LIBS date_time system)
find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED)
Expand Down

0 comments on commit 28342da

Please sign in to comment.