diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index cd00f9bd26..7faec83ca3 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -52,7 +52,7 @@ if (WINRT) endif() if (MSVC) set (ZXING_PUBLIC_FLAGS ${ZXING_PUBLIC_FLAGS} - /Zc:__cplusplus + $<$:/Zc:__cplusplus> ) endif() @@ -625,7 +625,7 @@ if (MSVC) COMPILE_PDB_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ZXing.pdb DESTINATION ${CMAKE_INSTALL_LIBDIR} - CONFIGURATIONS Debug RelWithDebInfo + CONFIGURATIONS Debug RelWithDebInfo OPTIONAL) endif()