Skip to content

Commit 893dfcc

Browse files
PeterPetriknyalldawson
authored andcommittedOct 11, 2022
do not build native if WITH_GUI=OFF
1 parent 8f12403 commit 893dfcc

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
 

‎src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
add_subdirectory(native)
21
add_subdirectory(core)
32

43
if (WITH_AUTH)
@@ -12,6 +11,7 @@ endif()
1211
if (WITH_GUI)
1312
add_subdirectory(ui)
1413
add_subdirectory(gui)
14+
add_subdirectory(native)
1515
endif()
1616

1717
add_subdirectory(providers)

‎src/core/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,10 +2280,6 @@ if (APPLE)
22802280
target_link_libraries(qgis_core ${LIBTASN1_LIBRARY})
22812281
endif()
22822282

2283-
if (APPLE AND NOT IOS)
2284-
target_link_libraries(qgis_core qgis_native)
2285-
endif()
2286-
22872283
target_link_libraries(qgis_core
22882284
${QT_VERSION_BASE}::Core
22892285
${QT_VERSION_BASE}::Gui

‎src/native/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if(APPLE)
6363
)
6464
endif()
6565

66-
if(MSVC AND NOT BUILD_WITH_QT6)
66+
if(MSVC)
6767
set(QGIS_NATIVE_SRCS ${QGIS_NATIVE_SRCS}
6868
../../external/wintoast/src/wintoastlib.cpp
6969
win/qgswinnative.cpp
@@ -96,7 +96,7 @@ target_include_directories(qgis_native PUBLIC
9696
${CMAKE_CURRENT_BINARY_DIR}
9797
)
9898

99-
if(MSVC AND NOT BUILD_WITH_QT6)
99+
if(MSVC)
100100
target_include_directories(qgis_native SYSTEM PUBLIC
101101
../../external/wintoast/src
102102
)
@@ -144,7 +144,7 @@ if (UNIX AND NOT APPLE AND NOT ANDROID)
144144
target_link_libraries(qgis_native ${QT_VERSION_BASE}::DBus)
145145
endif()
146146

147-
if (MSVC AND NOT BUILD_WITH_QT6)
147+
if (MSVC)
148148
find_package(${QT_VERSION_BASE}WinExtras)
149149

150150
target_link_libraries(qgis_native shell32)

0 commit comments

Comments
 (0)
Please sign in to comment.