]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Fix make error with debug mode
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 29 Jan 2017 16:47:13 +0000 (11:47 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 29 Jan 2017 16:47:13 +0000 (11:47 -0500)
CMakeLists.txt

index 2c254ea98c78bc2b182016930409e4f0684c62cc..b8324d397e49e3a643d1205838868d4428e9b44f 100644 (file)
@@ -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)