this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added BUILD_EXPLICIT_DEBUG CMake option and made building tests, demos, or tools force BUILD_STATIC since they depend on it.

authored by

Jonathan Dearborn and committed by
Alice
c0f910da 9d23da0b

+10 -1
+10 -1
CMakeLists.txt
··· 102 102 103 103 104 104 option(INSTALL_LIBRARY "Install SDL_gpu libs, includes, and CMake scripts" ${DEFAULT_INSTALL_LIBRARY}) 105 - #option(BUILD_DEBUG "Build with debugging symbols" ON) 105 + option(BUILD_EXPLICIT_DEBUG "Build with debugging symbols if your build tool does not support multiple configurations" OFF) 106 106 option(BUILD_DEMOS "Build SDL_gpu demo programs" ${DEFAULT_BUILD_DEMOS}) 107 107 option(BUILD_TESTS "Build SDL_gpu test programs" OFF) 108 108 option(BUILD_VIDEO_TEST "Build SDL_gpu video test program (requires FFMPEG)" OFF) ··· 145 145 include(ios-cmake/toolchain/XcodeDefaults) 146 146 endif() 147 147 148 + if ( BUILD_EXPLICIT_DEBUG ) 149 + SET(CMAKE_BUILD_TYPE Debug) 150 + endif ( BUILD_EXPLICIT_DEBUG ) 148 151 # Make local includes look in the right places 149 152 include_directories(include) 150 153 include_directories(src) ··· 357 360 if (USE_BUFFER_MAPPING) 358 361 add_definitions("-DSDL_GPU_USE_BUFFER_MAPPING") 359 362 endif (USE_BUFFER_MAPPING) 363 + 364 + 365 + if(BUILD_DEMOS OR BUILD_TESTS OR BUILD_TOOLS) 366 + # The executables link to the static library, so force build it. 367 + set(BUILD_STATIC ON) 368 + endif(BUILD_DEMOS OR BUILD_TESTS OR BUILD_TOOLS) 360 369 361 370 # Build the SDL_gpu library. 362 371 add_subdirectory(src)