From 7880f6d7678d05bfe1f3a588c5d66e7c19bbd4bc Mon Sep 17 00:00:00 2001 From: "Sean Francis N. Ballais" Date: Fri, 25 Dec 2020 14:00:51 +0800 Subject: [PATCH] :bug: Fix compilation errors in Linux. --- CMakeLists.txt | 2 +- src/SHADERed/UI/Debug/VectorWatchUI.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 57e2e524..acf1137b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,7 +211,7 @@ if (NOT WIN32) endif() # link libraries -target_link_libraries(SHADERed ${OPENGL_LIBRARIES} ${GLM_LIBRARY_DIRS} glslang SPIRV SPIRVVM assimp::assimp) +target_link_libraries(SHADERed ${OPENGL_LIBRARIES} ${GLM_LIBRARY_DIRS} glslang SPIRV SPIRVVM SPIRV-Tools SPIRV-Headers assimp::assimp) # link SpvGenTwo if (BUILD_IMMEDIATE_MODE) diff --git a/src/SHADERed/UI/Debug/VectorWatchUI.cpp b/src/SHADERed/UI/Debug/VectorWatchUI.cpp index 2142141e..68b8550c 100644 --- a/src/SHADERed/UI/Debug/VectorWatchUI.cpp +++ b/src/SHADERed/UI/Debug/VectorWatchUI.cpp @@ -8,6 +8,9 @@ #include #include + +#define GLM_ENABLE_EXPERIMENTAL 1 + #include const char* SIMPLE_VECTOR_VS_CODE = R"(