Skip to content

Conversation

@fangjunzhou
Copy link

No description provided.

Comment on lines +11 to +14
set(CMAKE_CXX_COMPILER /usr/local/opt/llvm/bin/clang++)
set(CMAKE_C_COMPILER /usr/local/opt/llvm/bin/clang)
# Link llvm libraries.
link_directories(/usr/local/opt/llvm/lib)
Copy link

@giordano giordano Sep 4, 2023

Choose a reason for hiding this comment

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

I don't think hardcoding absolute paths is a good idea at all, even more so if these are homebrew paths. Also, I don't see why hardcoding CMAKE_C_COMPILER at all instead of letting it to be set by users.

@scivision
Copy link

prefer #11 as that is canonical way to implement CMake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants