NSIS package generation fails when OPTION_BUILD_EXAMPLES is disabled
j-o opened this issue · 1 comments
j-o commented
I haven't quite figured out what the problem is, but it has something to do with NSIS trying to modify the non-existing "examples" component. See NSIS log below
!insertmacro: Deselect_required_by_runtime
SectionGetFlags: 0->$0
IntOp: $1=1~
IntOp: $0=$0&$1
SectionSetFlags: 0->$0
IntOp: $dev_selected=0+0
warning: unknown variable/constant "{examples}" detected, ignoring (macro:Deselect_required_by_runtime:6)
SectionGetFlags: ${examples}->$0
IntOp: $1=1~
IntOp: $0=$0&$1
warning: unknown variable/constant "{examples}" detected, ignoring (macro:Deselect_required_by_runtime:9)
SectionSetFlags: ${examples}->$0
Usage: IntOp $(user_var: result) val1 OP [val2]
OP=(+ - * / % | & ^ ~ ! || && << >>)
Error in macro Deselect_required_by_runtime on macroline 10
Error in macro MaybeSelectionChanged on macroline 10
Error in macro SectionList on macroline 4
Error in script "D:/projects/glheadless/build/_CPack_Packages/win64/NSIS/project.nsi" on line 881 -- aborting creation process
sbusch42 commented
Please experiment with the options in the "Package Components" section of the package project. Maybe removing "examples" from CPACK_COMPONENTS_ALL does the trick? In that case we have to insert ifs to check for each option separately.