From 09a6ac104f8b2614b5d3da4358486a76528ae46d Mon Sep 17 00:00:00 2001 From: Chun Cai Date: Thu, 26 Aug 2021 14:54:14 +0800 Subject: [PATCH] Fix typo: CMAKE_COMPILER_IS_GNUCXX (#1038) The flag won't work without language specified. See https://cmake.org/cmake/help/v3.4/variable/CMAKE_COMPILER_IS_GNULANG.html (cherry picked from commit 8bbe565c876d3e1424ac9840c466e502e98da528) --- source/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 9bb4486de6..d94706a47c 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.7) project(DeePMD) -if (CMAKE_COMPILER_IS_GNU) +if (CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_LINK_WHAT_YOU_USE TRUE) endif ()