absurdfarce commented on code in PR #582:
URL:
https://github.com/apache/cassandra-cpp-driver/pull/582#discussion_r2991522221
##########
CMakeLists.txt:
##########
@@ -177,7 +178,8 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
endif()
endif()
- if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
+ "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
Review Comment:
I'll let him speak on this for sure but I believe @yifan-c was able to get
this working more generally using regex matching:
```
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang$"
```
That's probably more desirable as it covers a broader range of clang
derivatives. cmake supports [a number of such
variants](https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html)
so as long as the flags in question apply to clang generally (i.e. isn't some
custom flag implemented for a specific clang variant) the more general syntax
seems preferrable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]