Skip to content

Commit 08c5a51

Browse files
committed
Revert "build: hoist CMARK_THREADING to a build-only config"
This reverts commit aef4761.
1 parent c0cf35c commit 08c5a51

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ include(FindAsan)
4242
if(CMARK_THREADING)
4343
set(THREADS_PREFER_PTHREAD_FLAG YES)
4444
include(FindThreads)
45-
add_compile_definitions(CMARK_THREADING)
4645
endif()
4746
include(GNUInstallDirs)
4847

src/config.h.in

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
extern "C" {
66
#endif
77

8+
#cmakedefine CMARK_THREADING
9+
810
#ifdef __cplusplus
911
}
1012
#endif

src/include/cmark-gfm_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
extern "C" {
1313
#endif
1414

15+
#define CMARK_THREADING
16+
1517
#ifdef __cplusplus
1618
}
1719
#endif

0 commit comments

Comments
 (0)