From 3d29955fd9ad4e943932570498d8027ed7463bbe Mon Sep 17 00:00:00 2001 From: Mateusz Daniluk <121170681+VeithMetro@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:11:04 +0100 Subject: [PATCH] Make sure to include the fno-gnu-unique flag only for GCC --- OpenCDMi/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenCDMi/CMakeLists.txt b/OpenCDMi/CMakeLists.txt index 4797801..b2ea301 100644 --- a/OpenCDMi/CMakeLists.txt +++ b/OpenCDMi/CMakeLists.txt @@ -53,7 +53,9 @@ add_library(${MODULE_NAME} SHARED FrameworkRPC.cpp Module.cpp) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-gnu-unique") +if (CMAKE_COMPILER_IS_GNUCXX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-gnu-unique") +endif() set_target_properties(${MODULE_NAME} PROPERTIES CXX_STANDARD 11