summaryrefslogtreecommitdiff
path: root/CMake/CheckHaveGetopt.cmake
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-09-01 11:24:08 +0000
committerAntonin Descampe <antonin@gmail.com>2011-09-01 11:24:08 +0000
commitaba0e602edd8947d149a3e69355719b1e63deae2 (patch)
tree43d61ec634eb5748a2bed36354052ff6a7d5d286 /CMake/CheckHaveGetopt.cmake
parent22a2f98cedb14f0db778b131d67c6bd9b8835a4e (diff)
renamed getopt.{c/h} to opj_getopt.{c/h} and forced the use of these files rather than the system ones. This fixed issue 78. Credit to Winfried.
Diffstat (limited to 'CMake/CheckHaveGetopt.cmake')
-rw-r--r--CMake/CheckHaveGetopt.cmake15
1 files changed, 0 insertions, 15 deletions
diff --git a/CMake/CheckHaveGetopt.cmake b/CMake/CheckHaveGetopt.cmake
deleted file mode 100644
index c0fd5dcf..00000000
--- a/CMake/CheckHaveGetopt.cmake
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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)
-