Skip to content

added path finding in CMakeLists.txt to fix 'begin_code.h' file not found error

Qinjun Jiang requested to merge qinjunj2/openxr-simple-example:master into master

To fix the error as follow:

In file included from /usr/include/SDL2/SDL.h:32: In file included from /usr/include/SDL2/SDL_main.h:25: In file included from /usr/include/SDL2/SDL_stdinc.h:31: In file included from /usr/include/SDL2/SDL_config.h:4: In file included from /usr/include/x86_64-linux-gnu/SDL2/_real_SDL_config.h:33: /usr/include/x86_64-linux-gnu/SDL2/SDL_platform.h:179:10: fatal error: 'begin_code.h' file not found #include "begin_code.h"

begin_code.h is not in /usr/include/x86_64-linux-gnu/SDL2 but in /usr/include/SDL2. So, added a search path in CMakeLists.txt to fix it.

Merge request reports