From 075d98300286a71677a085a067acf948e27c367d Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Wed, 28 Feb 2024 10:44:09 +0200 Subject: [PATCH] No need to enable C language in project() Signed-off-by: Martin Valgur --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09e65ec9..a4c02cc5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required( VERSION 3.5 FATAL_ERROR ) -project (urdfdom CXX C) +project (urdfdom CXX) set (URDF_MAJOR_VERSION 4) set (URDF_MINOR_VERSION 0) @@ -29,8 +29,8 @@ if (NOT CMAKE_BUILD_TYPE) endif() # If compiler support symbol visibility, enable it. -include(CheckCCompilerFlag) -check_c_compiler_flag(-fvisibility=hidden HAS_VISIBILITY) +include(CheckCXXCompilerFlag) +check_cxx_compiler_flag(-fvisibility=hidden HAS_VISIBILITY) if (HAS_VISIBILITY) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden") endif()