Skip to content

Commit

Permalink
Build file updates. (google#514)
Browse files Browse the repository at this point in the history
This CL adds a default to shaderc to build in Debug mode if the
build type is not provided. It also sets SPIRV-Headers to not build the
examples folder.
  • Loading branch information
dj2 authored and dneto0 committed Nov 19, 2018
1 parent eb743ec commit 7544155
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8.12)
project(shaderc)
enable_testing()

if ("${CMAKE_BUILD_TYPE}" STREQUAL "")
message(STATUS "No build type selected, default to Debug")
set(CMAKE_BUILD_TYPE "Debug")
endif()

message(STATUS "Shaderc: build type is \"${CMAKE_BUILD_TYPE}\".")

option(SHADERC_SKIP_INSTALL "Skip installation" ${SHADERC_SKIP_INSTALL})
Expand Down
1 change: 1 addition & 0 deletions third_party/CMakeLists.txt
Expand Up @@ -33,6 +33,7 @@ endif()
set(OLD_PLATFORM_TOOLSET ${CMAKE_GENERATOR_TOOLSET})

if (IS_DIRECTORY ${SHADERC_SPIRV_HEADERS_DIR})
set(SPIRV_HEADERS_SKIP_EXAMPLES ON)
add_subdirectory(${SHADERC_SPIRV_HEADERS_DIR} spirv-headers)
endif()

Expand Down

0 comments on commit 7544155

Please sign in to comment.