mirror of
https://github.com/transmission/transmission
synced 2025-01-03 05:25:52 +00:00
build: pass cmake compiler values to submodules (#2934)
This is needed for consistent building when using compiler-specific tooling such as address sanitizer flags.
This commit is contained in:
parent
6cdc7e3828
commit
d765b7ee3b
1 changed files with 2 additions and 0 deletions
|
@ -106,7 +106,9 @@ macro(tr_add_external_auto_library ID DIRNAME LIBNAME)
|
|||
-Wno-dev # We don't want to be warned over unused variables
|
||||
"-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}"
|
||||
"-DCMAKE_USER_MAKE_RULES_OVERRIDE=${CMAKE_USER_MAKE_RULES_OVERRIDE}"
|
||||
"-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
|
||||
"-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}"
|
||||
"-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
|
||||
"-DCMAKE_CXX_FLAGS:STRING=${CMAKE_CXX_FLAGS}"
|
||||
"-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}"
|
||||
"-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>"
|
||||
|
|
Loading…
Reference in a new issue