Skip to content

Commit 90b1f52

Browse files
njzjzcaic99
andauthored
Fix typo: CMAKE_COMPILER_IS_GNUCXX (#1038) (#1041)
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 8bbe565) Co-authored-by: Chun Cai <[email protected]>
1 parent c9fb8f4 commit 90b1f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.7)
22
project(DeePMD)
3-
if (CMAKE_COMPILER_IS_GNU)
3+
if (CMAKE_COMPILER_IS_GNUCXX)
44
set(CMAKE_LINK_WHAT_YOU_USE TRUE)
55
endif ()
66

0 commit comments

Comments
 (0)