From a1c33af488c444c850aaf63c4992fbe5c82744ec Mon Sep 17 00:00:00 2001 From: Ken Arroyo Ohori Date: Thu, 3 Sep 2020 21:40:22 -0500 Subject: [PATCH] skip linker groups on Mac --- cmake/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 88e8d317f8..acaa829306 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -352,7 +352,9 @@ endif() if(OCCT_STATIC) find_package(Threads) # OPENCASCADE_LIBRARIES repeated three times below in order to fix cyclic dependencies - use --start-group ... --end-group instead? - set(OPENCASCADE_LIBRARIES -Wl,--start-group ${OPENCASCADE_LIBRARIES} -Wl,--end-group ${CMAKE_THREAD_LIBS_INIT}) + if(NOT APPLE) + set(OPENCASCADE_LIBRARIES -Wl,--start-group ${OPENCASCADE_LIBRARIES} -Wl,--end-group ${CMAKE_THREAD_LIBS_INIT}) + endif() if (NOT APPLE AND NOT WIN32) set(OPENCASCADE_LIBRARIES ${OPENCASCADE_LIBRARIES} "rt") endif()