Skip to content

Commit

Permalink
[what] 修复编译问题
Browse files Browse the repository at this point in the history
  • Loading branch information
HR1025 committed Sep 22, 2024
1 parent 1862dfd commit ef55a67
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ project(MMP_SAMPLE DESCRIPTION "MMP(Multi Media Plugin) Sample")

set(MMP_SAMPLE_SRCS)
set(MMP_SAMPLE_INCS)
set(TMP_SAMPLE_LIBS)

# Linux 下使用, 主要用于排查内存问题
# if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
# set(ASAN_FLAGS "-fsanitize=address -fno-omit-frame-pointer")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ASAN_FLAGS}")
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ASAN_FLAGS}")
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${ASAN_FLAGS}")
# set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${ASAN_FLAGS}")
# endif()

list(APPEND MMP_SAMPLE_INCS
${CMAKE_CURRENT_SOURCE_DIR}/Core
Expand Down Expand Up @@ -43,4 +51,4 @@ target_include_directories(test_gl_transition PUBLIC ${MMP_SAMPLE_INCS})

add_executable(test_decoder ${MMP_SAMPLE_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/test_decoder.cpp)
target_link_libraries(test_decoder ${MMP_SAMPLE_LIBS})
target_include_directories(test_decoder PUBLIC ${MMP_SAMPLE_INCS})
target_include_directories(test_decoder PUBLIC ${MMP_SAMPLE_INCS})

0 comments on commit ef55a67

Please sign in to comment.