Skip to content

Commit

Permalink
update cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWinAdmin committed Oct 28, 2024
1 parent d6c8b40 commit 1b5c6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ endif()

if (APPLE)
set(FRAMEWORKS_PATH ${PROJECT_BINARY_DIR}/lib)
add_link_options(-ld_classic)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath -Wl,/usr/local/lib")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath -Wl,/usr/local/lib -Wl,-no_warn_duplicate_libraries")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-rpath -Wl,/usr/local/lib -Wl,-no_warn_duplicate_libraries")
else(APPLE)
set(FRAMEWORKS_PATH ${PROJECT_BINARY_DIR})
endif(APPLE)
Expand Down

0 comments on commit 1b5c6e1

Please sign in to comment.