diff options
author | Ray Molenkamp <github@lazydodo.com> | 2019-11-27 01:13:22 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2019-11-27 01:13:22 +0300 |
commit | b213d82c19c5b677df699debc683b57349185714 (patch) | |
tree | 36a872fd54dabd2b19ec93532ed9d3b21fa0b5b1 /build_files/cmake/macros.cmake | |
parent | b16018f637b35ba17f0515111fe5c450c5476105 (diff) |
Cleanup/CMake: Remove dormant windows codesign code
This was added years ago to prepare for code-signing the executable
but was never used, buildbots use a different mechanism now to sign
so no need to keep this around.
Diffstat (limited to 'build_files/cmake/macros.cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index 7dff91bc2b2..3944a8b3c56 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -1228,29 +1228,6 @@ macro(openmp_delayload endif() endmacro() -macro(WINDOWS_SIGN_TARGET target) - if(WITH_WINDOWS_CODESIGN) - if(!SIGNTOOL_EXE) - error("Codesigning is enabled, but signtool is not found") - else() - if(WINDOWS_CODESIGN_PFX_PASSWORD) - set(CODESIGNPASSWORD /p ${WINDOWS_CODESIGN_PFX_PASSWORD}) - else() - if($ENV{PFXPASSWORD}) - set(CODESIGNPASSWORD /p $ENV{PFXPASSWORD}) - else() - message(FATAL_ERROR "WITH_WINDOWS_CODESIGN is on but WINDOWS_CODESIGN_PFX_PASSWORD not set, and environment variable PFXPASSWORD not found, unable to sign code.") - endif() - endif() - add_custom_command(TARGET ${target} - POST_BUILD - COMMAND ${SIGNTOOL_EXE} sign /f ${WINDOWS_CODESIGN_PFX} ${CODESIGNPASSWORD} $<TARGET_FILE:${target}> - VERBATIM - ) - endif() - endif() -endmacro() - macro(blender_precompile_headers target cpp header) if(MSVC) # get the name for the pch output file |