 diff --git a/CMakeLists.txt b/CMakeLists.txt
-index ca53bde..bac0621 100644
+index 7d785be..edcf192 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -25,7 +25,7 @@ set(CMAKE_CXX_STANDARD 11)
+@@ -26,7 +26,7 @@ set(CMAKE_CXX_STANDARD 11)
  set(CMAKE_CXX_EXTENSIONS OFF)
  set(CMAKE_CXX_STANDARD_REQUIRED YES)
  

 # The Brunsli library definition.
 include(brunsli.cmake)
diff --git a/brunsli.cmake b/brunsli.cmake
index c8d4b8b..adcb1da 100644
--- a/brunsli.cmake
+++ b/brunsli.cmake
@@ -97,10 +97,16 @@ endforeach()
 add_executable(cbrunsli c/tools/cbrunsli.cc)
 target_link_libraries(cbrunsli PRIVATE
   brunslienc-static

+  brotlidec
+  brotlicommon
 )
 else()  # BRUNSLI_EMSCRIPTEN
 set(WASM_MODULES brunslicodec-wasm brunslidec-wasm brunslienc-wasm)
