Skip to content

Commit

Permalink
Fix HAVE_DIRENT_H test
Browse files Browse the repository at this point in the history
During the first stream, Jason hacked around the fact that check_include_file only works for C and not C++. This is the real fix for this issue.
  • Loading branch information
Richard Pastrick committed Jun 8, 2020
1 parent 1c56d69 commit 6a18ff3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,10 @@ endif()
find_package(m)

include(CheckSymbolExists)
include(CheckIncludeFile)
include(CheckIncludeFileCXX)
check_symbol_exists(strcasecmp "strings.h" HAVE_DECL_STRCASECMP)
check_symbol_exists(strncasecmp "strings.h" HAVE_DECL_STRNCASECMP)
#check_include_file("dirent.h" HAVE_DIRENT_H)

set(HAVE_DIRENT_H True)

check_include_file_cxx("dirent.h" HAVE_DIRENT_H)

string(CONCAT WINDOWS_RC_VERSION "${PROJECT_VERSION_MAJOR}, "
"${PROJECT_VERSION_MINOR}, ${PROJECT_VERSION_PATCH}, 0")
Expand Down

0 comments on commit 6a18ff3

Please sign in to comment.