CMake error in: CHECK_INCLUDE_FILES(dirent.h HAVE_DIRENT_API)
Blaxxun75 opened this issue · 0 comments
Hello,
When i try to generate the src files in CMake i cant get over the check for dirent.h
I get this error message:
CMake Error at src/CMakeLists.txt:46 (message):
MSVC has no support for Dirent API, please include the header manually.
See: http://www.softagalleria.net/dirent.php
I placed the dirent.h header file in "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include"
But it seems that CMake does not see it.
I was able to point CMake to the GLFW_INCLUDE and GLFW_LIBRARYS directly in the CMake UI
So i guess they are okay.
But i dont understand what to change in the CMakeLists.txt to make it pass the dirent.h check.
I tryd this:
set(CMAKE_REQUIRED_INCLUDES "C:/Program\ Files\ (x86)/Microsoft\ Visual\ Studio\ 14.0/VC/include")
And this:
include_directories("C:/Program\ Files\ (x86)/Microsoft\ Visual\ Studio\ 14.0/VC/include")
But without success.
Thankful for any help. :)