<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi there,</p>
    <p>I'm using a custom script [1] to look for the library sqlite3.
      However, the keyword "REQUIRED" (as quietly) is ignored by
      find_package. That is even if the library is not found, the script
      continues is processing:</p>
    <p>// CMakeLists.txt<br>
    </p>
    <pre style="background-color:#ffffff;color:#000000;font-family:'DejaVu Sans Mono';font-size:11.3pt;">cmake_minimum_required(<span style="color:#008000;font-weight:bold;">VERSION 3.10</span>)<span style="color:#808080;font-style:italic;"></span><span style="color:#808080;font-style:italic;">
</span>project(<span style="color:#008000;font-weight:bold;">hello_world</span>)<span style="color:#808080;font-style:italic;">
</span>list(<span style="color:#008000;font-weight:bold;">APPEND CMAKE_MODULE_PATH </span>"<span style="color:#008000;font-weight:bold;">${CMAKE_SOURCE_DIR}/build-aux/</span>")
find_package(<span style="color:#008000;font-weight:bold;">SQLite3 REQUIRED</span>)</pre>
    <p>// output:<br>
    </p>
    <p>cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang
      -DCMAKE_CXX_COMPILER=clang++ -G "CodeBlocks - Unix Makefiles" ../<br>
      -- Could NOT find SQLITE3 (missing: SQLITE3_LIBRARY) <br>
      -- Configuring done<br>
      -- Generating done<br>
      -- Build files have been written to: ...</p>
    <p><br>
    </p>
    <p>Any idea what is wrong here?<br>
    </p>
    <p><br>
    </p>
    <p>[1]
<a class="moz-txt-link-freetext" href="https://github.com/LuaDist/libsqlite3/blob/master/cmake/FindSQLite3.cmake">https://github.com/LuaDist/libsqlite3/blob/master/cmake/FindSQLite3.cmake</a><br>
    </p>
  </body>
</html>