Skip to content

Commit

Permalink
No need to enable C language in project()
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Feb 28, 2024
1 parent 6eae40c commit 3a3754e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 3a3754e

Please sign in to comment.