diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b7d25b73..094bdf56f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -879,6 +879,12 @@ if(CLIENT) ${WAVPACK_INCLUDE_DIRS} ) + set(PARAMS "${WAVPACK_INCLUDE_DIRS};${WAVPACK_INCLUDE_DIRS}") + if(NOT(WAVPACK_OPEN_FILE_INPUT_EX_PARAMS STREQUAL PARAMS)) + unset(WAVPACK_OPEN_FILE_INPUT_EX CACHE) + endif() + set(WAVPACK_OPEN_FILE_INPUT_EX_PARAMS "${PARAMS}" CACHE INTERNAL "") + set(CMAKE_REQUIRED_INCLUDES ${ORIGINAL_CMAKE_REQUIRED_INCLUDES} ${WAVPACK_INCLUDE_DIRS}) set(CMAKE_REQUIRED_LIBRARIES ${ORIGINAL_CMAKE_REQUIRED_LIBRARIES} ${WAVPACK_LIBRARIES}) check_symbol_exists(WavpackOpenFileInputEx wavpack.h WAVPACK_OPEN_FILE_INPUT_EX)