support older cmake versions

This commit is contained in:
Jacker 2015-09-30 12:33:07 +03:00
parent 70a2df3792
commit 7edf171724
1 changed files with 2 additions and 1 deletions

View File

@ -567,8 +567,9 @@ if(BUNDLED_THEORA)
LIST(APPEND THEORA_SRC ${THEORA_ASM_SRC})
endif()
include_directories("${CMAKE_CURRENT_LIST_DIR}/theora/include")
add_library(bundled_theora STATIC ${THEORA_SRC})
target_include_directories(bundled_theora PUBLIC "${CMAKE_CURRENT_LIST_DIR}/theora/include")
#target_include_directories(bundled_theora PUBLIC "${CMAKE_CURRENT_LIST_DIR}/theora/include")
#if(UNIX AND NOT APPLE)
# target_include_directories(bundled_theora PUBLIC "${CMAKE_CURRENT_LIST_DIR}/ogg/include")
#endif()