From a42ea071a0dde1d4362ed762c7605ddb2c7abe71 Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Sun, 5 Jan 2025 16:40:41 +0100 Subject: [PATCH] Add support of Cray compilers --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index da2fed9b..0fa6ceed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,8 +226,13 @@ install(FILES ${client_includes} install(FILES ${common_includes} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tracy/common) if(TRACY_Fortran) - install(FILES ${PROJECT_BINARY_DIR}/tracy.mod - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tracy) + if(${CMAKE_Fortran_COMPILER_ID} MATCHES "Cray") + install(FILES ${PROJECT_BINARY_DIR}/TRACY.mod + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tracy) + else() + install(FILES ${PROJECT_BINARY_DIR}/tracy.mod + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tracy) + endif() endif() install(EXPORT TracyConfig NAMESPACE Tracy::