Skip to content

Commit 38da404

Browse files
authored
Merge pull request #787 from bindreams/msvc-public-flag-guard
Fix '/Zc:__cplusplus' leaking into GNU-based compilers on Windows
2 parents d0c1f34 + 4476430 commit 38da404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (WINRT)
5252
endif()
5353
if (MSVC)
5454
set (ZXING_PUBLIC_FLAGS ${ZXING_PUBLIC_FLAGS}
55-
/Zc:__cplusplus
55+
$<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus>
5656
)
5757
endif()
5858

@@ -625,7 +625,7 @@ if (MSVC)
625625
COMPILE_PDB_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
626626
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ZXing.pdb
627627
DESTINATION ${CMAKE_INSTALL_LIBDIR}
628-
CONFIGURATIONS Debug RelWithDebInfo
628+
CONFIGURATIONS Debug RelWithDebInfo
629629
OPTIONAL)
630630
endif()
631631

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy