Skip to content

Commit

Permalink
Fix typo: CMAKE_COMPILER_IS_GNUCXX
Browse files Browse the repository at this point in the history
The flag won't work without language specified.
See https://cmake.org/cmake/help/v3.4/variable/CMAKE_COMPILER_IS_GNULANG.html
  • Loading branch information
caic99 authored Aug 26, 2021
1 parent ed20998 commit cb48952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 ()

Expand Down

0 comments on commit cb48952

Please sign in to comment.