HVML / PurC

The prime HVML interpreter for C Language.
GNU Lesser General Public License v3.0
1.06k stars 54 forks source link

Can't find cmakeconfig.h during build #15

Closed hrpccs closed 2 years ago

hrpccs commented 2 years ago

The problem comes like this:

In file included from /home/hrpccs/PurC/PurC/Source/WTF/wtf/AutomaticThread.cpp:26:
/home/hrpccs/PurC/PurC/Source/WTF/config.h:23:10: fatal error: cmakeconfig.h: No such file or directory
   23 | #include "cmakeconfig.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.

I found cmakeconfig.h generated in build/, but not included by config.h in several subdirs in Source/ like Source/WTF/config.h and Source/PurC/config.h

I don't kown whether the version of my cmake is not fit

$ cmake --version
cmake version 3.23.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Platform : (Ubuntu 20.04 in WSL2)

$ uname -a
Linux DESKTOP-CDET219 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I have sloved this problem easily by copy build/cmakeconfig.h to the subdir that miss cmakeconfig.h

PurC/build$ cp cmakeconfig.h ../Source/WTF/
PurC/build$ cp cmakeconfig.h ../Source/PurC/