Fixes osgViewer CMake build for Android.
Adds FORCE to overwrite the cached OWG_WINDOWING_SYSTEM variable.
This commit is contained in:
parent
997276d359
commit
9726617b6e
@ -82,14 +82,12 @@ IF(WIN32 AND NOT ANDROID)
|
|||||||
)
|
)
|
||||||
ELSE()
|
ELSE()
|
||||||
IF(ANDROID)
|
IF(ANDROID)
|
||||||
SET(OSG_WINDOWING_SYSTEM "None" CACHE STRING "None Windowing system type for graphics window creation.")
|
SET(OSG_WINDOWING_SYSTEM "None" CACHE STRING "None Windowing system type for graphics window creation." FORCE)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(OSG_WINDOWING_SYSTEM "X11" CACHE STRING "Windowing system type for graphics window creation. options only X11")
|
SET(OSG_WINDOWING_SYSTEM "X11" CACHE STRING "Windowing system type for graphics window creation. options only X11" FORCE)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(ANDROID)
|
IF(${OSG_WINDOWING_SYSTEM} STREQUAL "Cocoa")
|
||||||
MESSAGE(STATUS "Windowing system not supported for Android.")
|
|
||||||
ELSEIF(${OSG_WINDOWING_SYSTEM} STREQUAL "Cocoa")
|
|
||||||
ADD_DEFINITIONS(-DUSE_DARWIN_COCOA_IMPLEMENTATION)
|
ADD_DEFINITIONS(-DUSE_DARWIN_COCOA_IMPLEMENTATION)
|
||||||
|
|
||||||
IF(OSG_COMPILE_FRAMEWORKS)
|
IF(OSG_COMPILE_FRAMEWORKS)
|
||||||
|
Loading…
Reference in New Issue
Block a user