fluid-engine-dev icon indicating copy to clipboard operation
fluid-engine-dev copied to clipboard

No known features for CXX compiler "Clang"

Open Xayah-Hina opened this issue 3 years ago • 5 comments

Fluid Engine can throw a error that prevent me from a successful build on my environment (MacOS big sur, clang 11, cmake 3.19.6)

adding this line in the root CMakeLists.txt may help! (I put this line under the cmake_minimum_required(...) line)

cmake_policy(SET CMP0025 NEW)

a subtle fix advice, best regards!

Xayah-Hina avatar Apr 20 '21 15:04 Xayah-Hina

@Xayahp Thanks for report! I'll investgate this issue. ✋

utilForever avatar Apr 20 '21 15:04 utilForever

@doyubkim CMP0025 in CMake is used for the policy to use compiler ID either AppleClang or Clang. This policy was introduced in CMake version 3.0. However, our minimum version of CMake is 2.8.12. What do you think about upgrading CMake version to 3? Reference: https://cmake.org/cmake/help/latest/policy/CMP0025.html

utilForever avatar Apr 20 '21 16:04 utilForever

I'm fine with 3.0. Let's make sure it is well documented in the readme and other docs.

doyubkim avatar Apr 20 '21 16:04 doyubkim

If you don't mind, I'll work on it and ready to PR within this week.

utilForever avatar Apr 20 '21 16:04 utilForever

Sounds good to me!

doyubkim avatar Apr 20 '21 16:04 doyubkim