fix: 修复 Types.h 缺少头文件保护导致的重复定义错误

- Types.h: 添加 #pragma once 防止重复包含
- CMakeLists.txt: C++ 标准 17 → 20
- App/CMakeLists.txt: 移除重复的 C++11 覆盖,统一继承根 CMake 标准
- Axis.cpp: 添加 #include <string> 显式包含
This commit is contained in:
chen
2026-07-03 03:52:40 +00:00
parent d9813ea8fe
commit 818041201b
8 changed files with 96 additions and 6 deletions
-4
View File
@@ -6,10 +6,6 @@ project(MotionApp
VERSION 0.1
DESCRIPTION "Test")
# C/C++ 标准版本
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 11)
# 指定在当前目录或以下目录下通过命令(如 add_executable() )链接稍后创建的任何目标时要使用的库或标志
LINK_LIBRARIES(m)