Skip to content

Commit

Permalink
added linker_language prop to cmake so github workflow will recognize…
Browse files Browse the repository at this point in the history
… cpp project
  • Loading branch information
baderouaich committed Sep 22, 2023
1 parent b9aeb05 commit e0d37f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ file(GLOB_RECURSE SOURCES "${CMAKE_SOURCE_DIR}/src/**.cpp")
file(GLOB_RECURSE HEADERS "${CMAKE_SOURCE_DIR}/include/tgbotxx/**.hpp")

add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS})
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) # somehow github workflows doesn't detect proj lang
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
target_link_libraries(${PROJECT_NAME} PRIVATE ${TGBOTXX_LIBRARIES})

Expand Down

0 comments on commit e0d37f9

Please sign in to comment.