Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test/CMakeLists.txt中使用了include_directories,Test目录下的头文件不需要再使用相对路径 #155

Open
Tieeaa opened this issue Sep 30, 2024 · 0 comments

Comments

@Tieeaa
Copy link

Tieeaa commented Sep 30, 2024

当前版本的Test/CMakeLists.txt使用了include_directories,此时MyTinySTL文件夹已经添加到了全局搜索路径,但是Test文件夹下的头文件在访问MyTinySTL时仍然使用相对路径include "../MyTinySTL/container_name.h"。可以直接使用include "container_name.h"
image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant