From 427b25e1867dc23c6cd2258951c52f420a3767ef Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Sun, 29 Jan 2017 11:47:13 -0500 Subject: [PATCH] FIXED: Fix make error with debug mode --- CMakeLists.txt | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) 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) -- 2.40.0