Skip to content

Commit b7f4cf2

Browse files
committed
Fixed version macro for MSVC.
1 parent 80c9857 commit b7f4cf2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ endif()
1414

1515
target_include_directories(interval-tree INTERFACE ./include)
1616

17+
if(${MSVC})
18+
target_compile_options(interval-tree INTERFACE /Zc:__cplusplus)
19+
endif()
20+
1721
if(INT_TREE_DRAW_EXAMPLES)
1822
add_subdirectory(cairo-wrap)
1923
add_subdirectory(drawings)

0 commit comments

Comments
 (0)