Skip to content

Commit

Permalink
Cleanup CMake flags
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Oct 24, 2023
1 parent 975595c commit ee4893c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
14 changes: 6 additions & 8 deletions tools/jml-designer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,9 @@ target_link_libraries(jml-designer
juce::juce_recommended_warning_flags
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 15)
target_link_options(jml-designer
PRIVATE
-Wl,-weak_reference_mismatches,weak
)
endif()
endif()
if((${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 15))
target_link_options(jml-designer
PRIVATE
-Wl,-weak_reference_mismatches,weak
)
endif()
14 changes: 6 additions & 8 deletions tools/jml-viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,9 @@ target_link_libraries(jml-viewer
juce::juce_recommended_warning_flags
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 15)
target_link_options(jml-viewer
PRIVATE
-Wl,-weak_reference_mismatches,weak
)
endif()
endif()
if((${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 15))
target_link_options(jml-viewer
PRIVATE
-Wl,-weak_reference_mismatches,weak
)
endif()

0 comments on commit ee4893c

Please sign in to comment.