Skip to content

Commit ef5bfd8

Browse files
authored
修复CMake配置
1 parent 4c7cc17 commit ef5bfd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ add_subdirectory(lib)
1616
target_link_libraries(TwoBot PUBLIC nlohmann_json::nlohmann_json brynet httplib::httplib)
1717
target_compile_definitions(TwoBot PUBLIC _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING)
1818

19-
add_executable(TwoBot-demo demo/main.cpp)
19+
add_executable(TwoBot-demo demo/main.cc)
2020
target_link_libraries(TwoBot-demo TwoBot)
2121

2222
if(MSVC)
2323
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8")
2424
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8")
25-
endif()
25+
endif()

0 commit comments

Comments
 (0)