forked from KolibriOS/kolibrios
927f6fa6b2
git-svn-id: svn://kolibrios.org@4758 a494cfbc-eb01-0410-851d-a64ba20cac60
16 lines
437 B
CMake
16 lines
437 B
CMake
# Check if getopt is present:
|
|
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
|
|
SET(DONT_HAVE_GETOPT 1)
|
|
IF(UNIX) #I am pretty sure only *nix sys have this anyway
|
|
CHECK_INCLUDE_FILE("getopt.h" CMAKE_HAVE_GETOPT_H)
|
|
# Seems like we need the contrary:
|
|
IF(CMAKE_HAVE_GETOPT_H)
|
|
SET(DONT_HAVE_GETOPT 0)
|
|
ENDIF(CMAKE_HAVE_GETOPT_H)
|
|
ENDIF(UNIX)
|
|
|
|
IF(DONT_HAVE_GETOPT)
|
|
ADD_DEFINITIONS(-DDONT_HAVE_GETOPT)
|
|
ENDIF(DONT_HAVE_GETOPT)
|
|
|