Skip to content

Commit 8bbe565

Browse files
authored
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
1 parent b51f981 commit 8bbe565

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)