Change all C to C++ outside of TNG
[alexxy/gromacs.git] / cmake / gmxDetectTargetArchitecture.cmake
index eb7710b58fb9cdf3bef21d19d871d37c5f4970e4..12cc0fa97094031f2e0ff0647cbaef3ff52e5355 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2013,2014,2016,2018, by the GROMACS development team, led by
+# Copyright (c) 2013,2014,2016,2018,2019, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
 function(gmx_detect_target_architecture)
     if (NOT DEFINED GMX_TARGET_X86)
         try_compile(GMX_TARGET_X86 ${CMAKE_BINARY_DIR}
-            "${CMAKE_SOURCE_DIR}/cmake/TestX86.c")
+            "${CMAKE_SOURCE_DIR}/cmake/TestX86.cpp")
     endif()
     if (NOT DEFINED GMX_TARGET_MIC)
         try_compile(GMX_TARGET_MIC ${CMAKE_BINARY_DIR}
-            "${CMAKE_SOURCE_DIR}/cmake/TestMIC.c")
+            "${CMAKE_SOURCE_DIR}/cmake/TestMIC.cpp")
     endif()
     if (NOT DEFINED GMX_TARGET_ARMV7)
         try_compile(GMX_TARGET_ARMV7 ${CMAKE_BINARY_DIR}
@@ -54,6 +54,6 @@ function(gmx_detect_target_architecture)
     endif()
     if (NOT DEFINED GMX_TARGET_FUJITSU_SPARC64)
         try_compile(GMX_TARGET_FUJITSU_SPARC64 ${CMAKE_BINARY_DIR}
-            "${CMAKE_SOURCE_DIR}/cmake/TestFujitsuSparc64.c")
+            "${CMAKE_SOURCE_DIR}/cmake/TestFujitsuSparc64.cpp")
     endif()
 endfunction()