-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2604 from madebr/opus_cmake
opus: fix cmake_find_package name
- Loading branch information
Showing
6 changed files
with
67 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
cmake_minimum_required(VERSION 2.8.12) | ||
cmake_minimum_required(VERSION 3.1) | ||
project(cmake_wrapper) | ||
|
||
include("${CMAKE_BINARY_DIR}/conanbuildinfo.cmake") | ||
include(conanbuildinfo.cmake) | ||
conan_basic_setup() | ||
|
||
add_subdirectory("source_subfolder") | ||
add_subdirectory(source_subfolder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
recipes/opus/all/patches/1.3.1-add-opus_buildtype-cmake.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# They forgot to package that file into the tarball for 1.3.1 | ||
# See https://github.com/xiph/opus/issues/129 | ||
|
||
new file mode 100755 | ||
--- /dev/null | ||
+++ opus_buildtype.cmake | ||
@@ -0,0 +1,23 @@ | ||
+# Set a default build type if none was specified | ||
+ | ||
+if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | ||
+ if(CMAKE_C_FLAGS) | ||
+ message(STATUS "CMAKE_C_FLAGS: " ${CMAKE_C_FLAGS}) | ||
+ else() | ||
+ set(default_build_type "Release") | ||
+ message( | ||
+ STATUS | ||
+ "Setting build type to '${default_build_type}' as none was specified and no CFLAGS was exported." | ||
+ ) | ||
+ set(CMAKE_BUILD_TYPE "${default_build_type}" | ||
+ CACHE STRING "Choose the type of build." | ||
+ FORCE) | ||
+ # Set the possible values of build type for cmake-gui | ||
+ set_property(CACHE CMAKE_BUILD_TYPE | ||
+ PROPERTY STRINGS | ||
+ "Debug" | ||
+ "Release" | ||
+ "MinSizeRel" | ||
+ "RelWithDebInfo") | ||
+ endif() | ||
+endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters