Skip to content

Commit b9224c0

Browse files
committed
Updated glslang, SPIRV-Cross, and SPIRV-Tools.
Fixed usage of dynamic libraries for Boost on Windows that spontaneously broke. (likely due to a CMake change)
1 parent 4825c3f commit b9224c0

File tree

8 files changed

+14
-17
lines changed

8 files changed

+14
-17
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
4646

4747
if (MSL_SHARED)
4848
set(MSL_LIB SHARED)
49+
set(Boost_USE_STATIC_LIBS OFF)
4950
else()
5051
set(MSL_LIB STATIC)
52+
set(Boost_USE_STATIC_LIBS ON)
5153
endif()
5254

5355
if (MSL_OUTPUT_DIR)
@@ -58,7 +60,7 @@ endif()
5860

5961
set(MSL_MAJOR_VERSION 1)
6062
set(MSL_MINOR_VERSION 4)
61-
set(MSL_PATCH_VERSION 3)
63+
set(MSL_PATCH_VERSION 4)
6264
set(MSL_VERSION ${MSL_MAJOR_VERSION}.${MSL_MINOR_VERSION}.${MSL_PATCH_VERSION})
6365

6466
set(MSL_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

Compile/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
if (NOT MSL_SHARED)
2-
set(Boost_USE_STATIC_LIBS ON)
3-
endif()
41
find_package(Boost COMPONENTS system thread filesystem wave REQUIRED)
52
find_package(Threads)
63

@@ -64,6 +61,7 @@ target_include_directories(msl_compile
6461
src)
6562
target_link_libraries(msl_compile
6663
PRIVATE SPIRV-Tools-opt ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
64+
target_compile_definitions(msl_compile PRIVATE BOOST_ALL_NO_LIB)
6765

6866
msl_set_folder(msl_compile libs)
6967
msl_setup_filters(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src

Compile/SPIRV-Cross

Submodule SPIRV-Cross updated 296 files

Compile/SPIRV-Tools

Submodule SPIRV-Tools updated 132 files

Compile/glslang

Submodule glslang updated 101 files

Compile/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ target_include_directories(msl_compile_test
2121
PRIVATE ${GTEST_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${GLSLANG_DIR} ${SPIRV_CROSS_DIR} ../src)
2222
target_link_libraries(msl_compile_test
2323
PRIVATE msl_compile ${Boost_LIBRARIES} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
24+
target_compile_definitions(msl_compile_test PRIVATE BOOST_ALL_NO_LIB)
2425

2526
msl_set_folder(msl_compile_test tests)
2627
add_test(NAME MSLCompileTest COMMAND msl_compile_test)

tools/mslb-extract/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
if (NOT MSL_SHARED)
2-
set(Boost_USE_STATIC_LIBS ON)
3-
endif()
41
find_package(Boost COMPONENTS system program_options filesystem)
52

63
file(GLOB_RECURSE sources *.cpp *.h)
74
add_executable(mslb-extract ${sources})
85

96
target_include_directories(mslb-extract PRIVATE ${Boost_INCLUDE_DIRS})
107
target_link_libraries(mslb-extract PRIVATE msl_client ${Boost_LIBRARIES})
11-
target_compile_definitions(mslb-extract PRIVATE MSL_MAJOR_VERSION=${MSL_MAJOR_VERSION}
12-
MSL_MINOR_VERSION=${MSL_MINOR_VERSION} MSL_PATCH_VERSION=${MSL_PATCH_VERSION})
8+
target_compile_definitions(mslb-extract PRIVATE BOOST_ALL_NO_LIB
9+
MSL_MAJOR_VERSION=${MSL_MAJOR_VERSION} MSL_MINOR_VERSION=${MSL_MINOR_VERSION}
10+
MSL_PATCH_VERSION=${MSL_PATCH_VERSION})
1311

1412
msl_set_folder(mslb-extract tools)
1513

tools/mslc/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
if (NOT MSL_SHARED)
2-
set(Boost_USE_STATIC_LIBS ON)
3-
endif()
41
find_package(Boost COMPONENTS system program_options)
52

63
file(GLOB_RECURSE sources *.cpp *.h)
74
add_executable(mslc ${sources})
85

96
target_include_directories(mslc PRIVATE ${Boost_INCLUDE_DIRS})
107
target_link_libraries(mslc PRIVATE msl_compile ${Boost_LIBRARIES})
11-
target_compile_definitions(mslc PRIVATE MSL_MAJOR_VERSION=${MSL_MAJOR_VERSION}
12-
MSL_MINOR_VERSION=${MSL_MINOR_VERSION} MSL_PATCH_VERSION=${MSL_PATCH_VERSION})
8+
target_compile_definitions(mslc PRIVATE BOOST_ALL_NO_LIB
9+
MSL_MAJOR_VERSION=${MSL_MAJOR_VERSION} MSL_MINOR_VERSION=${MSL_MINOR_VERSION}
10+
MSL_PATCH_VERSION=${MSL_PATCH_VERSION})
1311

1412
msl_set_folder(mslc tools)
1513

0 commit comments

Comments
 (0)