OS/2 build fixes.
This commit is contained in:
parent
47557ee2d4
commit
3bc1f7d670
|
@ -21,6 +21,11 @@ IF(APPLE AND NOT MACOSX)
|
||||||
SET(MACOSX TRUE)
|
SET(MACOSX TRUE)
|
||||||
ENDIF(APPLE AND NOT MACOSX)
|
ENDIF(APPLE AND NOT MACOSX)
|
||||||
|
|
||||||
|
# And this might be wrong...
|
||||||
|
IF (CMAKE_SYSTEM MATCHES OS2)
|
||||||
|
SET(OS2 TRUE)
|
||||||
|
ENDIF (CMAKE_SYSTEM MATCHES OS2)
|
||||||
|
|
||||||
INCLUDE(CheckIncludeFile)
|
INCLUDE(CheckIncludeFile)
|
||||||
INCLUDE(CheckLibraryExists)
|
INCLUDE(CheckLibraryExists)
|
||||||
INCLUDE(CheckCSourceCompiles)
|
INCLUDE(CheckCSourceCompiles)
|
||||||
|
@ -58,7 +63,9 @@ IF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
" PHYSFS_IS_GCC4)
|
" PHYSFS_IS_GCC4)
|
||||||
|
|
||||||
IF(PHYSFS_IS_GCC4)
|
IF(PHYSFS_IS_GCC4)
|
||||||
ADD_DEFINITIONS(-fvisibility=hidden)
|
IF (NOT OS2) # Not supported on OS/2.
|
||||||
|
ADD_DEFINITIONS(-fvisibility=hidden)
|
||||||
|
ENDIF (NOT OS2)
|
||||||
ENDIF(PHYSFS_IS_GCC4)
|
ENDIF(PHYSFS_IS_GCC4)
|
||||||
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
|
||||||
|
@ -163,10 +170,10 @@ IF(UNIX)
|
||||||
ENDIF(BEOS)
|
ENDIF(BEOS)
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
|
|
||||||
IF(WINDOWS)
|
IF(WINDOWS OR OS2)
|
||||||
SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
|
SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
|
||||||
SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
|
SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
|
||||||
ENDIF(WINDOWS)
|
ENDIF(WINDOWS OR OS2)
|
||||||
|
|
||||||
IF(NOT PHYSFS_HAVE_CDROM_SUPPORT)
|
IF(NOT PHYSFS_HAVE_CDROM_SUPPORT)
|
||||||
ADD_DEFINITIONS(-DPHYSFS_NO_CDROM_SUPPORT=1)
|
ADD_DEFINITIONS(-DPHYSFS_NO_CDROM_SUPPORT=1)
|
||||||
|
|
Loading…
Reference in New Issue