Skip to content

Commit

Permalink
Make sure to include the fno-gnu-unique flag only for GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
VeithMetro authored Nov 13, 2024
1 parent 33a48b6 commit 3d29955
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OpenCDMi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d29955

Please sign in to comment.