Skip to content

Commit 3290b64

Browse files
committed
MacOSX: Compile to dylib
1 parent d37a004 commit 3290b64

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,17 @@ if(CMAKE_COMPILER_IS_GNUCC)
5353
endif()
5454

5555
if(QSQLCIPHER_STATIC)
56-
set(LIBTYPE STATIC)
57-
add_definitions(-DQT_STATICPLUGIN)
58-
set(TEST_DIR test-static)
56+
set(LIBTYPE STATIC)
57+
add_definitions(-DQT_STATICPLUGIN)
58+
set(TEST_DIR test-static)
5959
else()
60-
set(LIBTYPE MODULE)
60+
if (APPLE)
61+
set(LIBTYPE SHARED)
62+
else()
63+
set(LIBTYPE MODULE)
64+
endif()
6165
add_definitions(-DQT_PLUGIN)
62-
set(TEST_DIR test-shared)
66+
set(TEST_DIR test-shared)
6367
endif()
6468

6569
if (Qt5Sql_FOUND)

0 commit comments

Comments
 (0)