From c1756f84addbc6124d7a44409ba8eae8cd47beeb Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Fri, 7 Jun 2019 15:02:02 +0200 Subject: [PATCH] [iphreeqc] cmake: Set language cxx/c; Set missing cmake project language specification, especially for the Var.c file, which must be compiled with c++ and compilation with c issued a warning. --- ThirdParty/iphreeqc/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ThirdParty/iphreeqc/CMakeLists.txt b/ThirdParty/iphreeqc/CMakeLists.txt index 1d93c6fa96f..ec95ca5477a 100644 --- a/ThirdParty/iphreeqc/CMakeLists.txt +++ b/ThirdParty/iphreeqc/CMakeLists.txt @@ -1,4 +1,4 @@ -project(IPhreeqc) +project(IPhreeqc CXX C) set(IPHREEQC_VERSION 3.5.0) set(SOURCES @@ -87,6 +87,9 @@ set(SOURCES src/src/phreeqcpp/PhreeqcKeywords/Keywords.cpp ) +# compile Var.c as c++ +SET_SOURCE_FILES_PROPERTIES(src/src/Var.c PROPERTIES LANGUAGE CXX) + add_library(iphreeqc STATIC ${SOURCES}) target_include_directories(iphreeqc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/src -- GitLab