bcmpinc / voxel-engine

An experimental non-gpu 3d voxel engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find SDL2.cmake sets SDL2_INCLUDE_DIR incorrectly

opened this issue · comments

System config

System: Mac OSX 10.9
/Libraries/Frameworks contains SDL.framework as well as SDL2.framework

The FindSDL2.cmake sets

SDL2_INCLUDE_DIR to /Library/Frameworks/SDL.framework/headers (incorrectly)
SLD2_LIBRARY to /Library/Frameworks/SDL2.framework;-framework Cocoa (correct)

For the include dir I checked for SDL.h rather than for some SDL2 specific header, such as SDL_assert.h. Commit 5648884 should fix this issue.