Skip to content

Commit 4f33ea9

Browse files
committed
Windows: check MSVC version for building C++11 apps
1 parent 9960f54 commit 4f33ea9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/optionChecker/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include_directories(${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR})
99
# Add C++11 flag
1010
if(NOT WIN32)
1111
set(CMAKE_CXX_FLAGS "-std=c++0x")
12-
elseif(NOT MSVC12)
12+
elseif(${MSVC_VERSION} LESS 1800)
1313
message("C++11 not supported, will not build avOptionChecker app.")
1414
return()
1515
endif()

app/presetChecker/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include_directories(${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR})
99
# Add C++11 flag
1010
if(NOT WIN32)
1111
set(CMAKE_CXX_FLAGS "-std=c++0x")
12-
elseif(NOT MSVC12)
12+
elseif(${MSVC_VERSION} LESS 1800)
1313
message("C++11 not supported, will not build avPresetChecker app.")
1414
return()
1515
endif()

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