Skip to content

Commit b882f9a

Browse files
committed
Fix tool build msvc
1 parent b6df723 commit b882f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function(binary TARGET)
3333
target_link_libraries(${TARGET} PUBLIC ${COMMON_LIBS})
3434
target_link_libraries(${TARGET} PUBLIC ${BINARY_LIBS})
3535
target_compile_definitions(${TARGET} PUBLIC ${BINARY_DEFS})
36-
target_compile_options(${TARGET} PUBLIC ${BINARY_FLAGS} ${debug} ${warning_options})
36+
target_compile_options(${TARGET} PUBLIC ${BINARY_FLAGS} ${debug} ${warning_options} $<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus>)
3737
target_include_directories(${TARGET} PUBLIC "${PROJECT_SOURCE_DIR}/src")
3838
target_compile_features(${TARGET} PRIVATE cxx_std_20)
3939
set_target_properties(

0 commit comments

Comments
 (0)