From: Fletcher T. Penney Date: Sun, 29 Jan 2017 16:47:13 +0000 (-0500) Subject: FIXED: Fix make error with debug mode X-Git-Tag: 0.1.2a^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=427b25e1867dc23c6cd2258951c52f420a3767ef;p=multimarkdown FIXED: Fix make error with debug mode --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c254ea..b8324d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -334,12 +334,23 @@ endif (WIN32) # ============== # Create a library? -add_library(libMultiMarkdown STATIC - ${src_files} - ${src_utility_files} - ${header_files} - ${header_utility_files} -) +if (NOT DEFINED TEST) + add_library(libMultiMarkdown STATIC + ${src_files} + ${src_utility_files} + ${header_files} + ${header_utility_files} + ) +else () + add_library(libMultiMarkdown STATIC + ${src_files} + ${src_utility_files} + ${header_files} + ${header_utility_files} + ${test_files} + ) +endif () + ADD_PUBLIC_HEADER(libMultiMarkdown src/libMultiMarkdown.h) ADD_PUBLIC_HEADER(libMultiMarkdown src/d_string.h)