Re: [Piglit] [PATCH] CMake: define GBM_BO_MAP only when symbol is found

2017-05-15 Thread Daniel Díaz Rodríguez
Hello! On 11 May 2017 at 14:56, Jan Vesely wrote: > wouldn't it be cleaner to use CheckSymbolExists(gbm_bo_map GBM_HEADERS > PIGLIT_HAS_GBM_BO_MAP) > instead of the autostyle detection? Thanks for the suggestion. That didn't work for me in a previous attempt (with the wrong headers, apparently)

Re: [Piglit] [PATCH] CMake: define GBM_BO_MAP only when symbol is found

2017-05-11 Thread Jan Vesely
On Thu, 2017-05-11 at 14:17 -0500, Daniel Díaz wrote: > gbm_bo_map() and _unmap() have been added recently to Mesa, > and this update may not have reached all implementations of > GBM, such as the one provided by Mali r6, where said > definitions can be found in the header file but not in the > lib

[Piglit] [PATCH] CMake: define GBM_BO_MAP only when symbol is found

2017-05-11 Thread Daniel Díaz
gbm_bo_map() and _unmap() have been added recently to Mesa, and this update may not have reached all implementations of GBM, such as the one provided by Mali r6, where said definitions can be found in the header file but not in the library itself. This leads to errors like the following when linkin