aboutsummaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorSteven Perron <stevenperron@google.com>2019-05-06 14:21:57 -0400
committerGitHub <noreply@github.com>2019-05-06 14:21:57 -0400
commit9faad806fb502daa73f8e962a82662917c721c8c (patch)
tree659c56f1aa9389c016e641cda7a07834f489fcf7 /third_party
parentcea300d8e6b46f7aa329b20214e0b3bafb586734 (diff)
downloadamber-9faad806fb502daa73f8e962a82662917c721c8c.tar.gz
Exclude spirv-tools targets from all. (#496)
When asking the build environment to build all, everything in spirv-tools is being build. There are some options that turn off a few things, but that is harder to keep track of. This change will simply exclude everything in spirv-tools from all, and the only targets that will be built are those that amber depends on.
Diffstat (limited to 'third_party')
-rw-r--r--third_party/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index 21d2856..8b91f6a 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -266,9 +266,7 @@ if (${AMBER_ENABLE_SPIRV_TOOLS})
STRING(REGEX REPLACE ";" " " CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(SPIRV-Headers_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/spirv-headers CACHE STRING "")
set(SPIRV_SKIP_TESTS ON CACHE BOOL ON)
- set(SPIRV_SKIP_EXECUTABLES ON CACHE BOOL ON)
- set(SPIRV_HEADERS_SKIP_EXAMPLES ON CACHE BOOL ON)
- add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/spirv-tools)
+ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/spirv-tools EXCLUDE_FROM_ALL)
set(CMAKE_CXX_FLAGS ${CXX_BACK})
endif()