geos icon indicating copy to clipboard operation
geos copied to clipboard

clang-12: No CMAKE_CXX_COMPILER could be found.

Open strk opened this issue 2 years ago • 2 comments

I get No CMAKE_CXX_COMPILER could be found. from cmake even if I installed clang-12 package, which according to apt provides the c++-compiler virtual package on Ubuntu-20.04

strk avatar Jan 16 '24 15:01 strk

NOTE: installing g++ fixes the build

strk avatar Jan 16 '24 15:01 strk

Just like autoconf, CMake respects CC and CXX, so you can run CC=clang CXX=clang++ cmake ... But this seems like an alternatives issue. GEOS isn't supposed to work around distribution choices.

lnicola avatar Jan 16 '24 16:01 lnicola