Mercurial > hg > orthanc-python
comparison Resources/Orthanc/CMake/Compiler.cmake @ 113:5a60cbbe9bb0
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 Mar 2023 17:34:20 +0200 |
parents | e2b2e1d4e1bb |
children | 4cf3c2bc119f |
comparison
equal
deleted
inserted
replaced
112:b3a18e333f93 | 113:5a60cbbe9bb0 |
---|---|
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") |