From cb48952aa7531eb953931a0586c2d1f81f57673e Mon Sep 17 00:00:00 2001 From: Chun Cai Date: Thu, 26 Aug 2021 14:36:02 +0800 Subject: [PATCH] Fix typo: CMAKE_COMPILER_IS_GNUCXX The flag won't work without language specified. See https://cmake.org/cmake/help/v3.4/variable/CMAKE_COMPILER_IS_GNULANG.html --- source/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index cc230750fb..942d5d3026 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 ()