diff --git a/CMakeLists.txt b/CMakeLists.txt index 9aa72315ea1aae506ef79209899cfb497edcb850..886f694dd92d6a00338c7b087a04e4dfcd0ad2c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ if(USE_CCACHE) endif() # Precompiled header macro. Parameters are source file list and filename for pch cpp file. -macro(PCH SRCS PCHCPP) +macro(glslang_pch SRCS PCHCPP) if(MSVC) if (CMAKE_GENERATOR MATCHES "^Visual Studio") set(PCH_NAME "$(IntDir)\\pch.pch") @@ -58,7 +58,7 @@ macro(PCH SRCS PCHCPP) set_source_files_properties(${PCHCPP} PROPERTIES COMPILE_FLAGS "/Ycpch.h /Fp${PCH_NAME} /Zm300" OBJECT_OUTPUTS "${PCH_NAME}") list(APPEND ${SRCS} "${PCHCPP}") endif() -endmacro(PCH) +endmacro(glslang_pch) project(glslang) # make testing optional diff --git a/glslang/CMakeLists.txt b/glslang/CMakeLists.txt index 32fadcdd886737766466cc9604fdbd15f6a53e17..5f51476ba5d10410731685d795445a24d5fdf633 100644 --- a/glslang/CMakeLists.txt +++ b/glslang/CMakeLists.txt @@ -80,7 +80,7 @@ set(HEADERS # WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) # set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp) -PCH(SOURCES MachineIndependent/pch.cpp) +glslang_pch(SOURCES MachineIndependent/pch.cpp) add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS}) set_property(TARGET glslang PROPERTY FOLDER glslang) diff --git a/gtests/CMakeLists.txt b/gtests/CMakeLists.txt index 4832baac41e51c3ffe81508778350f04e91e3ad1..f678cb6ea5c982f60684f01155a0b86c197972be 100644 --- a/gtests/CMakeLists.txt +++ b/gtests/CMakeLists.txt @@ -25,7 +25,7 @@ if(BUILD_TESTING) # -- Remapper tests ${CMAKE_CURRENT_SOURCE_DIR}/Remap.FromFile.cpp) - PCH(TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/pch.cpp) + glslang_pch(TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/pch.cpp) add_executable(glslangtests ${TEST_SOURCES}) set_property(TARGET glslangtests PROPERTY FOLDER tests) diff --git a/hlsl/CMakeLists.txt b/hlsl/CMakeLists.txt index cf2f8f3217a5345b23f333fa9989e60acf8c3e8c..f918d7a13d467998833b6a3b16f04530f5ddc75f 100644 --- a/hlsl/CMakeLists.txt +++ b/hlsl/CMakeLists.txt @@ -17,7 +17,7 @@ set(HEADERS hlslGrammar.h hlslParseables.h) -PCH(SOURCES pch.cpp) +glslang_pch(SOURCES pch.cpp) add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS}) set_property(TARGET HLSL PROPERTY FOLDER hlsl) diff --git a/known_good.json b/known_good.json index ee8288568fbfc0ca6779c8b09d0bbce8649a0389..28aafdc9a258c6698087a074470c8c1b8d34f924 100755 --- a/known_good.json +++ b/known_good.json @@ -5,7 +5,7 @@ "site" : "github", "subrepo" : "KhronosGroup/SPIRV-Tools", "subdir" : "External/spirv-tools", - "commit" : "fb996dce752507132c40c255898154cce6c072c5" + "commit" : "9d699f6d4038f432c55310d5d0b4a6d507c1b686" }, { "name" : "spirv-tools/external/spirv-headers",