Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个catkin 工作空间中有两个包,一个必须用clang 构建,另一个必须用gcc 构建。根据我在网上阅读的内容,使用 set(CMAKE_C_COMPILER "gcc") 更改 CmakeLists.txt 中的编译器是不受欢迎的(甚至可能导致无限循环),但我也找不到特定于包的方法使用 catkin 的编译器。
有没有普遍接受的方法来做到这一点?