Permalink
Browse files

Merge branch 'pfultz2-master'

  • Loading branch information...
Toni Rönkkö
Toni Rönkkö committed Sep 12, 2016
2 parents dcfb1c8 + aaeb273 commit 8b1db5092479a73d47eafd3de739b27e876e6bf3
Showing with 7 additions and 8 deletions.
  1. +7 −8 CMakeLists.txt
View
@@ -3,15 +3,14 @@ project (dirent)
enable_language (C)
install (FILES include/dirent.h DESTINATION include)
# Add include directory to path if current system omits dirent.h file. This
# step is imporant for compiling the test programs under Linux.
include (CheckIncludeFiles)
check_include_files (dirent.h HAVE_DIRENT_H)
if (NOT HAVE_DIRENT_H)
# Only use the dirent file on windows systems
if (WIN32)
include_directories (${CMAKE_SOURCE_DIR}/include)
endif (NOT HAVE_DIRENT_H)
install (FILES include/dirent.h DESTINATION include)
else()
cmake_policy(SET CMP0037 OLD) # Supress warnings about fake install
add_custom_target(install) # Fake install target
endif()
# Build example programs
add_executable (find examples/find.c)

0 comments on commit 8b1db50

Please sign in to comment.