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

Building problem - cmake configure #25

Open
rkorzeniewski opened this issue Jan 29, 2020 · 2 comments
Open

Building problem - cmake configure #25

rkorzeniewski opened this issue Jan 29, 2020 · 2 comments

Comments

@rkorzeniewski
Copy link

cmake configure fails with the following error:

CMake Error at CMakeLists.txt:23 (add_executable):
  Cannot find source file:

    src/main.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


CMake Error at CMakeLists.txt:23 (add_executable):
  No SOURCES given to target: main


CMake Generate step failed.  Build files cannot be regenerated correctly.

@kangaxx
Copy link

kangaxx commented Sep 25, 2020

yes, no src/main.cpp in project ,hahahaha. In CMakeList.txt, replace src/main.cpp to example/example.cpp , and replace function void example() to int main(int argc, char* argv[]) , just do it

@rkorzeniewski
Copy link
Author

@kangaxx - yes, I know how to handle it for myself (I cloned the repository to https://github.com/inteos/thread-pool and extent it for my purpose) and for me it is not a problem. I created this issue to show @mtrebi what should be corrected for new users and easy adoption.

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