mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
5afd32266c
* add upstream patch * [skip actions] add the patch file * fine tune * [opencv] update portfiles to use vcpkg-get-python-packages * fix references * try another fix * add all deps * add code from tensorflow about venv * retry * fix file path * new approach * unset pythonhome * next unset * try this instead. * retry without the PYTHON_LIB_PATH stuff * try and error * next try * retry * typo fix * try updating * retry * more try and error * reorder * drop qface version * use qface 2.0.5 * bump watchdog * fix call on !windows * fine tuning * refactor function signature * update version * fix formating * version stuff * create dir before usage * fine tuning * version stuff * update and patch libilbc * formating stuff * fix version-string * version stuff * add license * version update * bump version * version stuff * version stuff Co-authored-by: Alexander Neumann <you@example.com> Co-authored-by: Stefano Sinigardi <stesinigardi@hotmail.com>
40 lines
1.6 KiB
Diff
40 lines
1.6 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 016b46d37..4caa88fce 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -50,14 +50,12 @@ set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
-if((CMAKE_C_COMPILER_ID STREQUAL "GNU") OR
|
|
- (CMAKE_C_COMPILER_ID MATCHES "Clang" AND CMAKE_C_COMPILER_FRONTEND_VARIANT STREQUAL "GNU"))
|
|
+if(0)
|
|
set(CMAKE_C_FLAGS "-Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wno-unused-parameter -fno-strict-aliasing")
|
|
set(CMAKE_C_FLAGS_DEBUG "-g")
|
|
set(CMAKE_C_FLAGS_RELEASE "-O2")
|
|
endif()
|
|
-if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
|
|
- (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "GNU"))
|
|
+if(0)
|
|
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing")
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
|
|
@@ -146,7 +144,8 @@ endif()
|
|
## Configure input files
|
|
#############################################################################
|
|
|
|
-include_directories(. abseil-cpp ${CMAKE_CURRENT_BINARY_DIR})
|
|
+find_package(absl REQUIRED)
|
|
+include_directories(. ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set(ilbc_source_files
|
|
modules/audio_coding/codecs/ilbc/abs_quant.c
|
|
@@ -310,6 +310,7 @@ add_library(ilbc ${ilbc_source_files})
|
|
generate_export_header(ilbc)
|
|
set_target_properties(ilbc PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 3)
|
|
set_target_properties(ilbc PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
|
+target_link_libraries(ilbc PRIVATE absl::core_headers)
|
|
|
|
add_executable(ilbc_test modules/audio_coding/codecs/ilbc/test/iLBC_test.c)
|
|
target_link_libraries(ilbc_test ilbc)
|