Skip to content

Commit aa7c407

Browse files
committed
Compile with /Zc:preprocessor again when using libassert
1 parent ae8f2e6 commit aa7c407

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ endif()
5959
if (CPPSORT_USE_LIBASSERT)
6060
target_link_libraries(cpp-sort INTERFACE libassert::assert)
6161
target_compile_definitions(cpp-sort INTERFACE CPPSORT_USE_LIBASSERT)
62+
if (MSVC)
63+
target_compile_options(cpp-sort INTERFACE /Zc:preprocessor)
64+
endif()
6265
endif()
6366

6467
add_library(cpp-sort::cpp-sort ALIAS cpp-sort)

0 commit comments

Comments
 (0)