From 3171f493c519de6902654f04ead5752fa27060ea Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 9 Oct 2023 05:53:06 +0200 Subject: [PATCH] Put pedantic compilation back in place --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 20407ca..789c6ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,12 @@ add_executable(glslls ${SOURCES} ) +if (MSVC) + target_compile_options(glslls PRIVATE /W4) +else() + target_compile_options(glslls PRIVATE -Wall -Wextra -Wpedantic) +endif() + target_link_libraries(glslls ${CMAKE_THREAD_LIBS_INIT} glslang