comparison Resources/Orthanc/CMake/Compiler.cmake @ 389:3d6886f3e5b3

upgrade to year 2023
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Apr 2023 11:17:20 +0200
parents 1280b40d6696
children c1b0f3c4e1f5
comparison
equal deleted inserted replaced
387:f35b17a38301 389:3d6886f3e5b3
1 # Orthanc - A Lightweight, RESTful DICOM Store 1 # Orthanc - A Lightweight, RESTful DICOM Store
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
3 # Department, University Hospital of Liege, Belgium 3 # Department, University Hospital of Liege, Belgium
4 # Copyright (C) 2017-2022 Osimis S.A., Belgium 4 # Copyright (C) 2017-2023 Osimis S.A., Belgium
5 # Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium 5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
6 # 6 #
7 # This program is free software: you can redistribute it and/or 7 # This program is free software: you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public License 8 # modify it under the terms of the GNU Lesser General Public License
9 # as published by the Free Software Foundation, either version 3 of 9 # as published by the Free Software Foundation, either version 3 of
10 # the License, or (at your option) any later version. 10 # the License, or (at your option) any later version.
235 message(FATAL_ERROR "Support your platform here") 235 message(FATAL_ERROR "Support your platform here")
236 endif() 236 endif()
237 237
238 238
239 if (DEFINED ENABLE_PROFILING AND ENABLE_PROFILING) 239 if (DEFINED ENABLE_PROFILING AND ENABLE_PROFILING)
240 if (CMAKE_COMPILER_IS_GNUCXX) 240 if (CMAKE_COMPILER_IS_GNUCXX OR
241 CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
241 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg") 242 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg")
242 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg") 243 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg")
243 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg") 244 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
244 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -pg") 245 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -pg")
245 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pg") 246 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pg")