Skip to content

Enhance CMake portability#810

Draft
benjaminmcq wants to merge 2 commits into
OpenVicProject:add/cmakefrom
benjaminmcq:add/cmake
Draft

Enhance CMake portability#810
benjaminmcq wants to merge 2 commits into
OpenVicProject:add/cmakefrom
benjaminmcq:add/cmake

Conversation

@benjaminmcq

@benjaminmcq benjaminmcq commented Jul 22, 2026

Copy link
Copy Markdown

this PR makes it so that we link TBB if(UNIX AND NOT APPLE) instead of Linux for portability and semantic reasons.

it also adds BSD as a preset which is bsd-x64

unsure if i should make changes in the README because of "official support," but if it's needed it can probably be included when the README is updated or as a standalone fix.

Signed-off-by: Benjamin Lee McQueen <mcq@disroot.org>
@benjaminmcq
benjaminmcq requested a review from a team as a code owner July 22, 2026 21:41
Comment thread CMakePresets.json Outdated
Comment thread CMakeLists.txt
link_libraries(${ICONV_LIBRARY})
endif()

add_subdirectory(deps)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was deps moved down here?

@benjaminmcq benjaminmcq Jul 23, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the makefile it's jumping to knows about iconv

Co-authored-by: George L. Albany <Megacake1234@gmail.com>
Comment thread CMakeLists.txt
)

if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# all unix non apple systems need tbb this way

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the style FakeByte used for comments to keep consistency.

Comment thread CMakeLists.txt
Comment on lines +96 to +97
# if needed detect other platforms

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the style FakeByte used for comments to keep consistency. Also remove the newline spacing.

@Spartan322

Spartan322 commented Jul 23, 2026

Copy link
Copy Markdown
Member

Also please change the commit message and PR to be specific about what this is doing, PRs and commit messages should describe what/why they're doing something, that's the style your commits should be doing, in this case it should say something like "Add unofficial BSD platform support" or something.

@Spartan322 Spartan322 added enhancement Issue that describes an improvement to the project topic:buildsystem Issue that applies to the buildsystem of the module, like modifying or improving the buildsystem platform:linux/bsd Issue relates to Linux or BSD in particular labels Jul 23, 2026
@Spartan322
Spartan322 marked this pull request as draft July 23, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issue that describes an improvement to the project platform:linux/bsd Issue relates to Linux or BSD in particular topic:buildsystem Issue that applies to the buildsystem of the module, like modifying or improving the buildsystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants