Skip to content

Commit 6b8a3cd

Browse files
Merge pull request #26 from robotology/fix/25
Add C to project LANGUAGES argument.
2 parents bc18487 + fbb30b2 commit 6b8a3cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ endif()
2222
# listed here: https://cmake.org/cmake/help/latest/command/project.html.
2323
# We use this name to export all the files such that is then possible to use
2424
# find_package(LibTemplateCMake) in third party projects.
25+
# LANGUAGES specifies which languages your project supports. To have a broad
26+
# support with external libraries, it is good practice to list both CXX and C.
27+
# Infact, some legacy Find<package>.cmake files that require the C language to
28+
# be enabled and thus using only CXX may cause issues. Note that by default when
29+
# LANGUAGES is not specified CMake enables both CXX and C.
2530
project(LibTemplateCMake
26-
LANGUAGES CXX
31+
LANGUAGES CXX C
2732
VERSION 0.0.0.0)
2833

2934
# Defines the CMAKE_INSTALL_LIBDIR, CMAKE_INSTALL_BINDIR and many other useful macros.

0 commit comments

Comments
 (0)