File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -514,33 +514,21 @@ function(make_wix_identifier STR VAR)
514
514
set (${VAR} "${STR} .${out} " PARENT_SCOPE )
515
515
endfunction ()
516
516
517
+
517
518
#
518
519
# Generate UUIDs
519
520
#
520
521
521
- find_program (UUIDGEN_COMMAND uuidgen )
522
-
523
- if (NOT UUIDGEN_COMMAND )
524
- message (FATAL_ERROR "Could not find uuidgen executable" )
525
- endif ()
526
-
527
522
function (generate_guid VAR )
528
523
529
- EXECUTE_PROCESS (
530
- COMMAND ${UUIDGEN_COMMAND} -c
531
- RESULT_VARIABLE res
532
- OUTPUT_VARIABLE guid
533
- OUTPUT_STRIP_TRAILING_WHITESPACE
534
- )
535
-
536
- if (res )
537
- message (FATAL_ERROR "Could not generate UUID: ${res} " )
538
- endif ()
539
-
524
+ string (RANDOM x )
525
+ string (UUID guid NAMESPACE "96122528-4F58-40F8-AB22-96F9853460F8" NAME "${x} " TYPE MD5 UPPER )
526
+ # message(STATUS "generated guid: ${guid}")
540
527
set (${VAR} ${guid} PARENT_SCOPE )
541
528
542
529
endfunction ()
543
530
531
+
544
532
#
545
533
# Convert path into a list
546
534
#
You can’t perform that action at this time.
0 commit comments