summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2017-11-18 16:08:55 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2017-11-18 16:16:01 +0100
commit772c4cbde52f1f295f66bb80a55d3db446742094 (patch)
treebd9c7a8837538412f99877147c4d3e11d61ac2e6 /api_test
parent736d8a3d81ab2ac8e5556f2dd5f6fed9d9137d18 (diff)
Also run API tests with CMARK_SHARED=OFF
Diffstat (limited to 'api_test')
-rw-r--r--api_test/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/api_test/CMakeLists.txt b/api_test/CMakeLists.txt
index 3151ccc..2701abb 100644
--- a/api_test/CMakeLists.txt
+++ b/api_test/CMakeLists.txt
@@ -8,7 +8,11 @@ include_directories(
${PROJECT_SOURCE_DIR}/src
${PROJECT_BINARY_DIR}/src
)
-target_link_libraries(api_test libcmark)
+if(CMARK_SHARED)
+ target_link_libraries(api_test libcmark)
+else()
+ target_link_libraries(api_test libcmark_static)
+endif()
# Compiler flags
if(MSVC)