File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,14 @@ if(NOT CMAKE_DEBUG_POSTFIX)
156156 set (CMAKE_DEBUG_POSTFIX "-d" )
157157endif ()
158158
159+ # Define EXEC_FILENAME_POSTFIX to accurately guess the end of filename of library/executable files
160+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
161+ set (EXEC_FILENAME_POSTFIX "${CMAKE_DEBUG_POSTFIX} " )
162+ else ()
163+ set (EXEC_FILENAME_POSTFIX "" )
164+ endif ()
165+ MESSAGE ( STATUS "EXEC_FILENAME_POSTFIX: " ${EXEC_FILENAME_POSTFIX} )
166+
159167# Prevents annoying warnings on MSVC
160168if (WIN32 )
161169 add_definitions (-D_CRT_SECURE_NO_WARNINGS)
Original file line number Diff line number Diff line change 3535 <![CDATA[ (&RegistrationFeature=2) AND (!RegistrationFeature=3)]]>
3636 </Custom >
3737 </InstallExecuteSequence >
38- <CustomAction Id =" RegisterFeatureInstall" Return =" check" Impersonate =" no" Execute =" deferred" Directory =" CM_DP_bin" ExeCommand =" regsvr32.exe /s " [CM_DP_bin]sa.shellextension${CMAKE_DEBUG_POSTFIX }.dll" " />
39- <CustomAction Id =" UnregisterFeatureUninstall" Return =" check" Impersonate =" no" Execute =" deferred" Directory =" CM_DP_bin" ExeCommand =" regsvr32.exe /s /u " [CM_DP_bin]sa.shellextension${CMAKE_DEBUG_POSTFIX }.dll" " />
38+ <CustomAction Id =" RegisterFeatureInstall" Return =" check" Impersonate =" no" Execute =" deferred" Directory =" CM_DP_bin" ExeCommand =" regsvr32.exe /s " [CM_DP_bin]sa.shellextension${EXEC_FILENAME_POSTFIX }.dll" " />
39+ <CustomAction Id =" UnregisterFeatureUninstall" Return =" check" Impersonate =" no" Execute =" deferred" Directory =" CM_DP_bin" ExeCommand =" regsvr32.exe /s /u " [CM_DP_bin]sa.shellextension${EXEC_FILENAME_POSTFIX }.dll" " />
4040
4141 <DirectoryRef Id =" INSTALL_ROOT" >
4242 <Component Id =" cmpREGISTRATION" Guid =" *" >
You can’t perform that action at this time.
0 commit comments