Move macOS-specific code inside if(APPLE) block
Move macOS-specific code inside if(APPLE) block

cjh1/tomviz-superbuild,OpenChemistry/tomviz-superbuild,cjh1/tomviz-superbuild,OpenChemistry/tomviz-superbuild