You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>If you are using CMake, and building NWindows as a submodule, you can disable the documentation build by setting the <M>NWINDOWS_BUILD_DOCUMENTATION</M> variable to <M>OFF</M> in your top-level <M>CMakeLists.txt</M> file.</p>
<p>The CMake build for NWindows uses the following cache variables: </p>
192
+
<Codetext={`set(NWINDOWS_BUILD_DOCUMENTATION ON CACHE BOOL "Build the Vite Documentation website?")
193
+
set(NWINDOWS_BUILD_EXAMPLES ON CACHE BOOL "Build the example projects?")
194
+
set(NWINDOWS_STRICT_COMPILER_OPTIONS ON CACHE BOOL "Use strict compiler warnings and errors?")
195
+
`}/>
196
+
<p>By default, NWindows builds with strict compiler options:</p>
197
+
<Codetext={`-Wall -Wextra -Wpedantic -Werror`}/>
184
198
199
+
<p>Setting <M>NWINDOWS_STRICT_COMPILER_OPTIONS</M> to <M>OFF</M> will make Nwindows build without any of these
200
+
options.</p>
201
+
<p>If you are using NWindows as a git submodule, you can set these variables in your
202
+
top-level <M>CMakeLists.txt</M> file to control the build of NWindows. For example, to disable building the documentation, add the following line to your top-level <M>CMakeLists.txt</M> file
203
+
before adding the NWindows submodule directory:</p>
0 commit comments