Skip to content

Commit c6754ac

Browse files
committed
wip.
1 parent db7c153 commit c6754ac

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
cmake_minimum_required(VERSION 3.5.0)
22

3-
set(HAVE_FLAG_SEARCH_PATHS_FIRST 0)
4-
53
project(seergdb VERSION 2.6.0 LANGUAGES CXX)
64

7-
set(CMAKE_C_LINK_FLAGS "")
8-
set(CMAKE_CXX_LINK_FLAGS "") # If you are using C++
9-
105
set(PROJECT_NAME seergdb)
116

127
if(NOT DEFINED QTVERSION)
@@ -287,3 +282,10 @@ elseif(${QTVERSION} STREQUAL "QT5")
287282
target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Gui Qt5::Core Qt5::PrintSupport Qt5::Charts)
288283
endif()
289284

285+
# For MacOS
286+
foreach(flag_var CMAKE_SHARED_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS)
287+
if(APPLE)
288+
string(REPLACE "-Wl,-search_paths_first" "" ${flag_var} "${${flag_var}}")
289+
endif()
290+
endforeach()
291+

0 commit comments

Comments
 (0)