aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-12-12 11:19:38 -0800
committerChris Robinson <[email protected]>2008-12-12 11:19:38 -0800
commitdd7e23740bac08c30086437cb72e4388483a126c (patch)
treeffe47bb37711fb4bf42adbdeccd79b87743b58b8 /CMakeLists.txt
parent1acd6da7457378b110df2b53e8ec3cfd00e1a6a9 (diff)
Remove XCOMPILEWIN32 option in favor of CMake 2.6's cross-compiling caps
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 3 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4956329e..7dbe2f93 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,10 +34,8 @@ OPTION(WERROR "Treat compile warnings as errors" OFF)
OPTION(EXAMPLES "Build example programs" ON)
-OPTION(XCOMPILEWIN32 "Cross-compile to Win32" OFF)
-
-IF(WIN32 OR XCOMPILEWIN32)
+IF(WIN32)
SET(LIBNAME openal32)
ADD_DEFINITIONS("-D_WIN32")
ELSE()
@@ -104,7 +102,7 @@ ELSE()
FORCE)
# Set visibility options if available
- IF(NOT WIN32 AND NOT XCOMPILEWIN32)
+ IF(NOT WIN32)
CHECK_C_SOURCE_COMPILES("int foo() __attribute__((destructor));
int main() {return 0;}" HAVE_GCC_DESTRUCTOR)
@@ -374,15 +372,6 @@ SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES VERSION ${LIB_VERSION}
IF(WIN32)
SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES PREFIX "")
ENDIF()
-IF(XCOMPILEWIN32)
- SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES PREFIX "" SUFFIX .dll)
- IF(EXAMPLES)
- SET(EXAMPLES OFF)
- MESSAGE(STATUS "")
- MESSAGE(STATUS "Building examples disabled when cross-compiling")
- ENDIF()
-ENDIF()
-SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES OUTPUT_NAME ${LIBNAME})
TARGET_LINK_LIBRARIES(${LIBNAME} ${EXTRA_LIBS})
@@ -415,7 +404,7 @@ MESSAGE(STATUS "Building OpenAL with support for the following backends:")
MESSAGE(STATUS " ${BACKENDS}")
MESSAGE(STATUS "")
-IF(WIN32 OR XCOMPILEWIN32)
+IF(WIN32)
IF(NOT HAVE_DSOUND)
MESSAGE(STATUS "WARNING: Building the Windows version without DirectSound output")
MESSAGE(STATUS " This is probably NOT what you want!")