We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4cd609d + ee8c419 commit 0c57047Copy full SHA for 0c57047
source/CMakeLists.txt
@@ -1,6 +1,8 @@
1
cmake_minimum_required(VERSION 3.7)
2
project(DeePMD)
3
-set(CMAKE_LINK_WHAT_YOU_USE TRUE)
+if (CMAKE_COMPILER_IS_GNU)
4
+ set(CMAKE_LINK_WHAT_YOU_USE TRUE)
5
+endif ()
6
7
# build cpp or python interfaces
8
if (NOT DEFINED BUILD_CPP_IF)
0 commit comments