summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Hilliard <james.hilliard1@gmail.com>2023-01-31 03:34:22 -0700
committerGitHub <noreply@github.com>2023-01-31 13:34:22 +0300
commit097a5ecacd527d5b5c3006e360fb9cb1c1c48a1f (patch)
treeaa6632534b05d5a4f3df8811972e21014639c625
parenta15b489e1222b2087007546b4912e21293ea86ff (diff)
downloadneon_2_sse-upstream-master.tar.gz
Fix cmake languages (#62)upstream-master
When no language is set cmake defaults to C and CXX, since we support C by itself we should set the project language to C so that we don't get a compiler error when building without a CXX toolchain. Fixes: CMake Error at CMakeLists.txt:5 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4b8980..8f58e79 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@
# Modification: Copyright (C) 2017 David Hirvonen
cmake_minimum_required(VERSION 3.0)
-project(NEON_2_SSE VERSION 1.0.0)
+project(NEON_2_SSE VERSION 1.0.0 LANGUAGES C)
add_library(${PROJECT_NAME} INTERFACE)