mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-24 03:39:45 +00:00
[dlib] Dlib encodes debug/release in its config.h. Patch it to respond to the NDEBUG macro instead.
This commit is contained in:
parent
8e50c86f0a
commit
e1a111ad09
@ -1,4 +1,4 @@
|
||||
Source: dlib
|
||||
Version: 19.4-2
|
||||
Version: 19.4-3
|
||||
Build-Depends: libjpeg-turbo, libpng, sqlite3, fftw3
|
||||
Description: Modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++
|
||||
|
@ -51,6 +51,12 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/dlib/travis)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/dlib/external/libpng/arm)
|
||||
|
||||
# Dlib encodes debug/release in its config.h. Patch it to respond to the NDEBUG macro instead.
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/include/dlib/config.h _contents)
|
||||
string(REPLACE "/* #undef ENABLE_ASSERTS */" "#if !defined(NDEBUG)\n#define ENABLE_ASSERTS\n#endif" _contents ${_contents})
|
||||
string(REPLACE "#define DLIB_DISABLE_ASSERTS" "#if defined(NDEBUG)\n#define DLIB_DISABLE_ASSERTS\n#endif" _contents ${_contents})
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/dlib/config.h ${_contents})
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_PACKAGES_DIR}/share/doc/dlib/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/dlib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/dlib/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/dlib/COPYRIGHT)
|
||||
|
Loading…
Reference in New Issue
Block a user