User Tools

Site Tools


programming:buildsystems:cmake:notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:buildsystems:cmake:notes [2026/01/04 22:24] – Added first line to [Detecting Linux distribution]. basprogramming:buildsystems:cmake:notes [2026/01/04 22:25] (current) – Added the subheadline "Detecting OpenBSD". bas
Line 92: Line 92:
 </code> </code>
 Source:[[https://linuxvox.com/blog/cmake-detect-linux/|LinuxVox.com - CMake Detection of Linux: A Comprehensive Guide]] Source:[[https://linuxvox.com/blog/cmake-detect-linux/|LinuxVox.com - CMake Detection of Linux: A Comprehensive Guide]]
 +
 +
 +=====Detecting OpenBSD=====
 +
 +Add to CMakeLists.txt:
 +
 +<code>
 +if (BSD STREQUAL "OpenBSD")
 + include_directories(/usr/local/include)
 + include_directories(/usr/local/include/opus)
 +endif()
 +</code>
  
  
programming/buildsystems/cmake/notes.txt · Last modified: by bas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki