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

为什么demo3不需要include_directories指令,demo4就需要呢 #9

Open
nextonr opened this issue Apr 9, 2021 · 1 comment
Open

Comments

@nextonr
Copy link

nextonr commented Apr 9, 2021

rt

@zhc2019github
Copy link

因为demo3中main.cc里是带目录引用的头文件,所以不用include_directories
#include "math/MathFunctions.h"
而demo4中main.cc里是直接引用的,所以要用include_directories
#ifdef USE_MYMATH
#include <MathFunctions.h>
#else
#include <math.h>
#endif

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

2 participants