We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7c153 commit c6754acCopy full SHA for c6754ac
src/CMakeLists.txt
@@ -1,12 +1,7 @@
1
cmake_minimum_required(VERSION 3.5.0)
2
3
-set(HAVE_FLAG_SEARCH_PATHS_FIRST 0)
4
-
5
project(seergdb VERSION 2.6.0 LANGUAGES CXX)
6
7
-set(CMAKE_C_LINK_FLAGS "")
8
-set(CMAKE_CXX_LINK_FLAGS "") # If you are using C++
9
10
set(PROJECT_NAME seergdb)
11
12
if(NOT DEFINED QTVERSION)
@@ -287,3 +282,10 @@ elseif(${QTVERSION} STREQUAL "QT5")
287
282
target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Gui Qt5::Core Qt5::PrintSupport Qt5::Charts)
288
283
endif()
289
284
285
+# For MacOS
286
+foreach(flag_var CMAKE_SHARED_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS)
+ if(APPLE)
+ string(REPLACE "-Wl,-search_paths_first" "" ${flag_var} "${${flag_var}}")
+ endif()
290
+endforeach()
291
+
0 commit comments