diff --git a/CMakeLists.txt b/CMakeLists.txt index 3139ef78..46ab1f93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,7 +73,7 @@ if(MSVC) endforeach() endif() else() - add_compile_options(-Wextra -Wall) + add_compile_options(-Wextra -Wall $<$:-Werror=implicit-function-declaration>) # Enable large file support on 32-bit systems. add_definitions( diff --git a/deps/libMXF/CMakeLists.txt b/deps/libMXF/CMakeLists.txt index 986af062..e2333067 100644 --- a/deps/libMXF/CMakeLists.txt +++ b/deps/libMXF/CMakeLists.txt @@ -74,7 +74,7 @@ if(MSVC) endforeach() endif() else() - add_compile_options(-Wextra -Wall) + add_compile_options(-Wextra -Wall $<$:-Werror=implicit-function-declaration>) # Enable large file support on 32-bit systems. add_definitions( diff --git a/deps/libMXFpp/CMakeLists.txt b/deps/libMXFpp/CMakeLists.txt index a5e7b11a..7c3cf085 100644 --- a/deps/libMXFpp/CMakeLists.txt +++ b/deps/libMXFpp/CMakeLists.txt @@ -59,7 +59,7 @@ if(MSVC) endforeach() endif() else() - add_compile_options(-Wextra -Wall) + add_compile_options(-Wextra -Wall $<$:-Werror=implicit-function-declaration>) # Enable large file support on 32-bit systems. add_definitions(