File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ include(AvTranscoderMacros)
7
7
# Build app
8
8
include_directories (${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR} )
9
9
# Add C++11 flag
10
- set (CMAKE_CXX_FLAGS "-std=c++0x" )
10
+ if (NOT WIN32 )
11
+ set (CMAKE_CXX_FLAGS "-std=c++0x" )
12
+ elseif (NOT MSVC12 )
13
+ message ("C++11 not supported, will not build avOptionChecker app." )
14
+ return ()
15
+ endif ()
16
+
11
17
add_executable (avoptionchecker optionChecker.cpp )
12
18
set_target_properties (avoptionchecker PROPERTIES VERSION ${AVTRANSCODER_VERSION} )
13
19
target_link_libraries (avoptionchecker avtranscoder-shared )
Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ include(AvTranscoderMacros)
7
7
# Build app
8
8
include_directories (${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR} )
9
9
# Add C++11 flag
10
- set (CMAKE_CXX_FLAGS "-std=c++0x" )
10
+ if (NOT WIN32 )
11
+ set (CMAKE_CXX_FLAGS "-std=c++0x" )
12
+ elseif (NOT MSVC12 )
13
+ message ("C++11 not supported, will not build avPresetChecker app." )
14
+ return ()
15
+ endif ()
16
+
11
17
add_executable (avpresetchecker presetChecker.cpp )
12
18
set_target_properties (avpresetchecker PROPERTIES VERSION ${AVTRANSCODER_VERSION} )
13
19
target_link_libraries (avpresetchecker avtranscoder-shared )
You can’t perform that action at this time.
0 commit comments