mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Set /Zc:__cplusplus when building on MSVC
This may trigger dependencies to use C++11/14/17 code paths.
This commit is contained in:
+1
-1
@@ -364,7 +364,7 @@ endif()
|
||||
|
||||
if(MSVC)
|
||||
# Turn off permissive mode to be more standards-compliant and avoid compiler errors.
|
||||
target_compile_options(loot PRIVATE "/permissive-" "/W4")
|
||||
target_compile_options(loot PRIVATE "/Zc:__cplusplus" "/permissive-" "/W4")
|
||||
endif()
|
||||
|
||||
##############################
|
||||
|
||||
+2
-1
@@ -166,10 +166,11 @@ endif()
|
||||
|
||||
if(MSVC)
|
||||
# Turn off permissive mode to be more standards-compliant and avoid compiler errors.
|
||||
target_compile_options(libloot_tests PRIVATE "/permissive-" "/W4")
|
||||
target_compile_options(libloot_tests PRIVATE "/Zc:__cplusplus" "/permissive-" "/W4")
|
||||
|
||||
# Set /bigobj to allow building Debug and RelWithDebInfo tests
|
||||
target_compile_options(libloot_internals_tests PRIVATE
|
||||
"/Zc:__cplusplus"
|
||||
"/permissive-"
|
||||
"/W4"
|
||||
"$<$<OR:$<CONFIG:DEBUG>,$<CONFIG:RelWithDebInfo>>:/bigobj>")
|
||||
|
||||
Reference in New Issue
Block a user