Skip to content

Commit

Permalink
deps/yaramod: propagate CMAKE_CXX_FLAGS_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMatula committed Jun 12, 2020
1 parent 79ab964 commit 9ee4783
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ set(YARA_ARCHIVE_SHA256
)

set(YARAMOD_URL
"https://github.com/avast/yaramod/archive/57f4ee87372aba7735bbcc1ed870f43faaa8127b.zip"
"https://github.com/avast/yaramod/archive/fe9ef1c3a2767868f31cb5a7189c173b4b27557b.zip"
CACHE INTERNAL "URL of YaraMod archive to use."
)
set(YARAMOD_ARCHIVE_SHA256
"c7fdfc1a425d5bcab18fd336e284ee3dff0fe64749a46348af289cfed6fe2b92"
"55445a8a21fab13cbdf228f397635c587e2a58605407be32bc70329de60c6016"
CACHE INTERNAL ""
)

Expand Down
2 changes: 2 additions & 0 deletions deps/yaramod/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if(YARAMOD_LOCAL_DIR)
# This does not work on MSVC, but may be useful on Linux.
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
-DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG}
# Force the use of the same compiler as used to build the top-level
# project. Otherwise, the external project may pick up a different
# compiler, which may result in link errors.
Expand All @@ -32,6 +33,7 @@ else()
# This does not work on MSVC, but may be useful on Linux.
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
-DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG}
# Force the use of the same compiler as used to build the top-level
# project. Otherwise, the external project may pick up a different
# compiler, which may result in link errors.
Expand Down

0 comments on commit 9ee4783

Please sign in to comment.